Class: Actor
- Inherits:
-
Object
- Object
- Actor
- Defined in:
- lib/badfruit/Actors/actor.rb
Instance Attribute Summary collapse
-
#characters ⇒ Object
Returns the value of attribute characters.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(actorHash) ⇒ Actor
constructor
A new instance of Actor.
Constructor Details
#initialize(actorHash) ⇒ Actor
Returns a new instance of Actor.
4 5 6 7 |
# File 'lib/badfruit/Actors/actor.rb', line 4 def initialize(actorHash) @name = actorHash["name"] @characters = actorHash["characters"] end |
Instance Attribute Details
#characters ⇒ Object
Returns the value of attribute characters.
2 3 4 |
# File 'lib/badfruit/Actors/actor.rb', line 2 def characters @characters end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/badfruit/Actors/actor.rb', line 2 def name @name end |