Class: Shards::Location
- Inherits:
-
Object
- Object
- Shards::Location
- Defined in:
- lib/shards/location.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#stages ⇒ Object
Returns the value of attribute stages.
Instance Method Summary collapse
-
#initialize(location_name, data) ⇒ Location
constructor
A new instance of Location.
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
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/shards/location.rb', line 7 def name @name end |
#stages ⇒ Object
Returns the value of attribute stages.
7 8 9 |
# File 'lib/shards/location.rb', line 7 def stages @stages end |