Class: Brainzz::VideoSearchItem
- Inherits:
-
Object
- Object
- Brainzz::VideoSearchItem
- Defined in:
- lib/brainzz/models/video_search_item.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#video ⇒ Object
Returns the value of attribute video.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ VideoSearchItem
constructor
A new instance of VideoSearchItem.
Constructor Details
#initialize(hash = {}) ⇒ VideoSearchItem
Returns a new instance of VideoSearchItem.
5 6 7 8 9 10 |
# File 'lib/brainzz/models/video_search_item.rb', line 5 def initialize(hash = {}) @hash = hash @id = hash['id'] @video = Video.new(hash) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/brainzz/models/video_search_item.rb', line 3 def id @id end |
#video ⇒ Object
Returns the value of attribute video.
3 4 5 |
# File 'lib/brainzz/models/video_search_item.rb', line 3 def video @video end |