Class: ImdbGenre

Inherits:
Object
  • Object
show all
Defined in:
lib/imdb/imdb_genre.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imdb_id, name) ⇒ ImdbGenre

Returns a new instance of ImdbGenre.



4
5
6
7
# File 'lib/imdb/imdb_genre.rb', line 4

def initialize(imdb_id, name)
  self.imdb_id = imdb_id;
  self.name = name;
end

Instance Attribute Details

#imdb_idObject

Returns the value of attribute imdb_id.



2
3
4
# File 'lib/imdb/imdb_genre.rb', line 2

def imdb_id
  @imdb_id
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/imdb/imdb_genre.rb', line 2

def name
  @name
end