Class: Beach

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeObject

Returns the value of attribute best_time.



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

def best_time
  @best_time
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end