|
|
@ -44,15 +44,11 @@ struct ChannelVideo
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def to_json(locale, json : JSON::Builder | Nil = nil)
|
|
|
|
def to_json(locale, _json : Nil = nil)
|
|
|
|
if json
|
|
|
|
|
|
|
|
to_json(locale, json)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
JSON.build do |json|
|
|
|
|
JSON.build do |json|
|
|
|
|
to_json(locale, json)
|
|
|
|
to_json(locale, json)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_xml(locale, query_params, xml : XML::Builder)
|
|
|
|
def to_xml(locale, query_params, xml : XML::Builder)
|
|
|
|
query_params["v"] = self.id
|
|
|
|
query_params["v"] = self.id
|
|
|
@ -88,15 +84,11 @@ struct ChannelVideo
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def to_xml(locale, xml : XML::Builder | Nil = nil)
|
|
|
|
def to_xml(locale, _xml : Nil = nil)
|
|
|
|
if xml
|
|
|
|
|
|
|
|
to_xml(locale, xml)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
XML.build do |xml|
|
|
|
|
XML.build do |xml|
|
|
|
|
to_xml(locale, xml)
|
|
|
|
to_xml(locale, xml)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def to_tuple
|
|
|
|
def to_tuple
|
|
|
|
{% begin %}
|
|
|
|
{% begin %}
|
|
|
|