Class: Tumblr4r::Video
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#title ⇒ Object
Returns the value of attribute title.
-
#video_caption ⇒ Object
Returns the value of attribute video_caption.
-
#video_player ⇒ Object
Returns the value of attribute video_player.
-
#video_source ⇒ Object
Returns the value of attribute video_source.
Attributes inherited from Post
#bookmarklet, #date, #date_gmt, #format, #generator, #post_id, #private, #tags, #type, #unix_timestamp, #url, #url_with_slug
Instance Method Summary collapse
-
#params ⇒ Object
TODO: title は vimeo へのアップロードのときのみ有効らしい TODO: embed を使うか、アップロードしたdataを使うかってのは Tumblr側で勝手に判断されるのかなぁ?.
Methods inherited from Post
Constructor Details
This class inherits a constructor from Tumblr4r::Post
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
265 266 267 |
# File 'lib/tumblr4r.rb', line 265 def data @data end |
#title ⇒ Object
Returns the value of attribute title.
265 266 267 |
# File 'lib/tumblr4r.rb', line 265 def title @title end |
#video_caption ⇒ Object
Returns the value of attribute video_caption.
264 265 266 |
# File 'lib/tumblr4r.rb', line 264 def @video_caption end |
#video_player ⇒ Object
Returns the value of attribute video_player.
264 265 266 |
# File 'lib/tumblr4r.rb', line 264 def video_player @video_player end |
#video_source ⇒ Object
Returns the value of attribute video_source.
264 265 266 |
# File 'lib/tumblr4r.rb', line 264 def video_source @video_source end |
Instance Method Details
#params ⇒ Object
TODO: title は vimeo へのアップロードのときのみ有効らしい TODO: embed を使うか、アップロードしたdataを使うかってのは Tumblr側で勝手に判断されるのかなぁ?
269 270 271 272 273 274 275 |
# File 'lib/tumblr4r.rb', line 269 def params super.merge!( {"embed" => @video_source, "data" => @data, "title" => @title, "caption" => @video_caption}) end |