Class: Rb::Lomo::Film
- Inherits:
-
Object
- Object
- Rb::Lomo::Film
- Defined in:
- lib/rb-lomo/film.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ Film
constructor
A new instance of Film.
Constructor Details
#initialize(json) ⇒ Film
Returns a new instance of Film.
9 10 11 12 |
# File 'lib/rb-lomo/film.rb', line 9 def initialize json @id = json['id'] @name = json['name'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/rb-lomo/film.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/rb-lomo/film.rb', line 7 def name @name end |