Class: Landmark
- Inherits:
-
Object
- Object
- Landmark
- Defined in:
- lib/travel/landmarks.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) ⇒ Landmark
constructor
A new instance of Landmark.
Constructor Details
#initialize(name, location) ⇒ Landmark
Returns a new instance of Landmark.
4 5 6 7 |
# File 'lib/travel/landmarks.rb', line 4 def initialize(name, location) @name = name @location = location end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/travel/landmarks.rb', line 2 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/travel/landmarks.rb', line 2 def name @name end |