Class: Shards::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/shards/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location_name, data) ⇒ Location

Returns a new instance of Location.



9
10
11
12
13
14
15
16
17
# File 'lib/shards/location.rb', line 9

def initialize location_name, data

  @name=location_name

  @stages = {}

  add_stages data

end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/shards/location.rb', line 7

def name
  @name
end

#stagesObject

Returns the value of attribute stages.



7
8
9
# File 'lib/shards/location.rb', line 7

def stages
  @stages
end