Class: ImdbParty::Person
- Inherits:
-
Object
- Object
- ImdbParty::Person
- Defined in:
- lib/imdb_party/person.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(options = {}) ⇒ Person
constructor
A new instance of Person.
Constructor Details
#initialize(options = {}) ⇒ Person
Returns a new instance of Person.
5 6 7 8 9 10 |
# File 'lib/imdb_party/person.rb', line 5 def initialize(={}) @name = ["name"]["name"] @imdb_id = ["name"]["nconst"] @role = ["char"] if ["char"] end |
Instance Attribute Details
#imdb_id ⇒ Object
Returns the value of attribute imdb_id.
3 4 5 |
# File 'lib/imdb_party/person.rb', line 3 def imdb_id @imdb_id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/imdb_party/person.rb', line 3 def name @name end |
#role ⇒ Object
Returns the value of attribute role.
3 4 5 |
# File 'lib/imdb_party/person.rb', line 3 def role @role end |