Class: Beach
- Inherits:
-
Object
- Object
- Beach
- Defined in:
- lib/travel/beaches.rb
Instance Attribute Summary collapse
-
#best_time ⇒ Object
Returns the value of attribute best_time.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, location, best_time) ⇒ Beach
constructor
A new instance of Beach.
Constructor Details
#initialize(name, location, best_time) ⇒ Beach
Returns a new instance of Beach.
4 5 6 7 8 |
# File 'lib/travel/beaches.rb', line 4 def initialize(name, location, best_time) @name = name @location = location @best_time = best_time end |
Instance Attribute Details
#best_time ⇒ Object
Returns the value of attribute best_time.
2 3 4 |
# File 'lib/travel/beaches.rb', line 2 def best_time @best_time end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/travel/beaches.rb', line 2 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/travel/beaches.rb', line 2 def name @name end |