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