Class: Maps
- Inherits:
-
Object
- Object
- Maps
- Defined in:
- lib/maps.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, location) ⇒ Maps
constructor
A new instance of Maps.
Constructor Details
#initialize(name, location) ⇒ Maps
Returns a new instance of Maps.
9 10 11 12 |
# File 'lib/maps.rb', line 9 def initialize(name, location) @name = name @location = location end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
7 8 9 |
# File 'lib/maps.rb', line 7 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/maps.rb', line 7 def name @name end |