Class: ImdbName
- Inherits:
-
Object
- Object
- ImdbName
- Defined in:
- lib/imdb/imdb_name.rb
Instance Attribute Summary collapse
-
#imdb_id ⇒ Object
Returns the value of attribute imdb_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#role ⇒ Object
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(imdb_id, name, role) ⇒ ImdbName
constructor
A new instance of ImdbName.
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_id ⇒ Object
Returns the value of attribute imdb_id.
2 3 4 |
# File 'lib/imdb/imdb_name.rb', line 2 def imdb_id @imdb_id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/imdb/imdb_name.rb', line 2 def name @name end |
#role ⇒ Object
Returns the value of attribute role.
2 3 4 |
# File 'lib/imdb/imdb_name.rb', line 2 def role @role end |