Class: ImdbName

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imdb_id, name, role) ⇒ ImdbName

Returns a new instance of ImdbName.



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

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

Instance Attribute Details

#imdb_idObject

Returns the value of attribute imdb_id.



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

def imdb_id
  @imdb_id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#roleObject

Returns the value of attribute role.



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

def role
  @role
end