Class: DestinationOntheRise

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DestinationOntheRise

Returns a new instance of DestinationOntheRise.



4
5
6
# File 'lib/travel/destinations_on_the_rise.rb', line 4

def initialize(name)
  @name = name 
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



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

def name
  @name
end