Class: TwicasStream::TwicasApiObject::Movie
- Inherits:
-
Object
- Object
- TwicasStream::TwicasApiObject::Movie
- Defined in:
- lib/twicas_stream/twicas_api_object/movie.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(elements = {}) ⇒ Movie
constructor
A new instance of Movie.
Constructor Details
#initialize(elements = {}) ⇒ Movie
Returns a new instance of Movie.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/twicas_stream/twicas_api_object/movie.rb', line 9 def initialize elements = {} @object = { :id => elements['id'], :user_id => elements['user_id'], :title => elements['title'], :subtitle => elements['subtitle'], :last_owner_comment => elements['last_owner_comment'], :category => elements['category'], :link => elements['link'], :is_live => elements['is_live'], :is_recorded => elements['is_recorded'], :comment_count => elements['comment_count'], :large_thumbnail => elements['large_thumbnail'], :small_thumbnail => elements['small_thumbnail'], :country => elements['country'], :duration => elements['duration'], :created => elements['created'], :is_collabo => elements['is_collabo'], :is_protected => elements['is_protected'], :max_view_count => elements['max_view_count'], :current_view_count => elements['current_view_count'], :total_view_count => elements['total_view_count'], :hls_url => elements['hls_url'] } end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
7 8 9 |
# File 'lib/twicas_stream/twicas_api_object/movie.rb', line 7 def object @object end |