Class: ImdbCompany
- Inherits:
-
Object
- Object
- ImdbCompany
- Defined in:
- lib/imdb/imdb_company.rb
Instance Attribute Summary collapse
-
#imdb_id ⇒ Object
Returns the value of attribute imdb_id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(imdb_id, name) ⇒ ImdbCompany
constructor
A new instance of ImdbCompany.
Constructor Details
#initialize(imdb_id, name) ⇒ ImdbCompany
Returns a new instance of ImdbCompany.
4 5 6 7 |
# File 'lib/imdb/imdb_company.rb', line 4 def initialize(imdb_id, name) self.imdb_id = imdb_id; self.name = name; end |
Instance Attribute Details
#imdb_id ⇒ Object
Returns the value of attribute imdb_id.
2 3 4 |
# File 'lib/imdb/imdb_company.rb', line 2 def imdb_id @imdb_id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/imdb/imdb_company.rb', line 2 def name @name end |