Class: Rb::Lomo::Camera
- Inherits:
-
Object
- Object
- Rb::Lomo::Camera
- Defined in:
- lib/rb-lomo/camera.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) ⇒ Camera
constructor
A new instance of Camera.
Constructor Details
#initialize(json) ⇒ Camera
Returns a new instance of Camera.
9 10 11 12 |
# File 'lib/rb-lomo/camera.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/camera.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/rb-lomo/camera.rb', line 7 def name @name end |