Class: Rb::Lomo::Film

Inherits:
Object
  • Object
show all
Defined in:
lib/rb-lomo/film.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/rb-lomo/film.rb', line 5

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/rb-lomo/film.rb', line 7

def name
  @name
end