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