Class: Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/badfruit/Actors/actor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#charactersObject

Returns the value of attribute characters.



2
3
4
# File 'lib/badfruit/Actors/actor.rb', line 2

def characters
  @characters
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/badfruit/Actors/actor.rb', line 2

def name
  @name
end