Class: Maps

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, location) ⇒ Maps

Returns a new instance of Maps.



9
10
11
12
# File 'lib/maps.rb', line 9

def initialize(name, location)
	@name = name
	@location = location
end

Instance Attribute Details

#locationObject

Returns the value of attribute location.



7
8
9
# File 'lib/maps.rb', line 7

def location
  @location
end

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/maps.rb', line 7

def name
  @name
end