Sha256: 3b09275522982f03635d712c68b4c9050bdd79a856130026212374a5eb899899
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 Bytes
Contents
module Vzaar module Request class EditVideo < Video authenticated true http_verb :put resource "Video" # JC: duplicated, refactor def json_body get_opts.to_json end def xml_body request_xml = %{ <?xml version="1.0" encoding="UTF-8"?> #{hash_to_xml(get_opts)} } request_xml end def get_opts { "vzaar-api" => { "video" => { "title" => sanitize_str(options[:title]), "seo_url" => sanitize_str(options[:seo_url]), "description" => sanitize_str(options[:description]), "private" => options[:private] } } } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vzaar-1.5.1 | lib/vzaar/request/edit_video.rb |