Class: Wes::Data::API::Model::Video
- Inherits:
-
Base
- Object
- Base
- Wes::Data::API::Model::Video
show all
- Defined in:
- lib/wes/data/api/model/video.rb
Instance Attribute Summary
Attributes inherited from Base
#attributes
Instance Method Summary
collapse
Methods inherited from Base
#exist?, #id, #initialize
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Wes::Data::API::Model::Base
Instance Method Details
#caption(edit) ⇒ Object
8
9
10
|
# File 'lib/wes/data/api/model/video.rb', line 8
def caption(edit)
update(:caption => edit)
end
|
#gif ⇒ Object
20
21
22
|
# File 'lib/wes/data/api/model/video.rb', line 20
def gif
@gif_state ||= video_state("gif", ".gif")
end
|
#thumbnail ⇒ Object
12
13
14
|
# File 'lib/wes/data/api/model/video.rb', line 12
def thumbnail
@thumbnail_state ||= video_state("gif", "_00001.png")
end
|
16
17
18
|
# File 'lib/wes/data/api/model/video.rb', line 16
def web_format
@web_state ||= video_state("mp4", ".mp4")
end
|