Class: Restaurant

Inherits:
Object
  • Object
show all
Defined in:
lib/travel/restaurants.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cuisineObject

Returns the value of attribute cuisine.



2
3
4
# File 'lib/travel/restaurants.rb', line 2

def cuisine
  @cuisine
end

#locationObject

Returns the value of attribute location.



2
3
4
# File 'lib/travel/restaurants.rb', line 2

def location
  @location
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/travel/restaurants.rb', line 2

def name
  @name
end