Sha256: b46662d917c613e8bc2a0b4015b3bf3a6a68d2c6e5e242b5f7ea9579e6ddd516
Contents?: true
Size: 759 Bytes
Versions: 5
Compression:
Stored size: 759 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" => CGI.escape(options.fetch(:seo_url, "")), "description" => sanitize_str(options[:description]), "private" => options[:private] } } } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems