Class: Pexels::Video::Picture
- Inherits:
-
Object
- Object
- Pexels::Video::Picture
- Defined in:
- lib/pexels/video/picture.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#picture ⇒ Object
readonly
Returns the value of attribute picture.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Picture
constructor
A new instance of Picture.
Constructor Details
#initialize(attrs) ⇒ Picture
Returns a new instance of Picture.
6 7 8 9 10 |
# File 'lib/pexels/video/picture.rb', line 6 def initialize(attrs) @id = attrs.fetch('id') @picture = attrs.fetch('picture') @nr = attrs.fetch('nr') end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/pexels/video/picture.rb', line 2 def id @id end |
#picture ⇒ Object (readonly)
Returns the value of attribute picture.
2 3 4 |
# File 'lib/pexels/video/picture.rb', line 2 def picture @picture end |