Class: Warb::Resources::Video
- Defined in:
- lib/warb/resources/video.rb
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#link ⇒ Object
Returns the value of attribute link.
-
#media_id ⇒ Object
Returns the value of attribute media_id.
Instance Method Summary collapse
Methods inherited from Resource
#add_document_header, #add_image_header, #add_text_header, #add_video_header, #build_template_named_parameter, #build_template_positional_parameter, #call, #initialize
Methods included from Validation
#blank?, #raw_value, #resolve, #validates
Constructor Details
This class inherits a constructor from Warb::Resources::Resource
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
6 7 8 |
# File 'lib/warb/resources/video.rb', line 6 def caption @caption end |
#link ⇒ Object
Returns the value of attribute link.
6 7 8 |
# File 'lib/warb/resources/video.rb', line 6 def link @link end |
#media_id ⇒ Object
Returns the value of attribute media_id.
6 7 8 |
# File 'lib/warb/resources/video.rb', line 6 def media_id @media_id end |
Instance Method Details
#build_header ⇒ Object
8 9 10 |
# File 'lib/warb/resources/video.rb', line 8 def build_header common_video_params end |
#build_payload ⇒ Object
12 13 14 15 16 |
# File 'lib/warb/resources/video.rb', line 12 def build_payload params = common_video_params params[:video][:caption] = caption || @params[:caption] params end |