in src/main/scala/com/gu/commercial/display/AdTargetParam.scala [127:134]
def apply(value: String): PathParam = PathParam(SingleValue(value))
def fromItemId(id: String): Option[PathParam] = SingleValue.fromRaw(s"/${id.stripPrefix("/")}") map (PathParam(_))
def from(item: Content): Option[PathParam] = fromItemId(item.id)
def from(section: Section): Option[PathParam] = fromItemId(section.id)
def from(tag: Tag): Option[PathParam] = fromItemId(tag.id)
}
case class PlatformParam(value: SingleValue) extends AdTargetParam {