Class: Vzaar::Request::EditVideo
- Defined in:
- lib/vzaar/request/edit_video.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #get_opts ⇒ Object
-
#json_body ⇒ Object
JC: duplicated, refactor.
- #xml_body ⇒ Object
Methods inherited from Video
Methods inherited from Base
endpoint, #execute, format, resource
Methods included from Helper
#blank?, #hash_to_xml, #symb_keys
Instance Method Details
#get_opts ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/vzaar/request/edit_video.rb', line 22 def get_opts { "vzaar-api" => { "video" => { "title" => [:title], "seo_url" => [:seo_url], "description" => [:description], "private" => [:private] } } } end |
#json_body ⇒ Object
JC: duplicated, refactor
9 10 11 |
# File 'lib/vzaar/request/edit_video.rb', line 9 def json_body get_opts.to_json end |
#xml_body ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/vzaar/request/edit_video.rb', line 13 def xml_body request_xml = %{ <?xml version="1.0" encoding="UTF-8"?> #{hash_to_xml(get_opts)} } request_xml end |