Class: GeoMagic::Location::Region

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, code) ⇒ Region

Returns a new instance of Region.



51
52
53
54
# File 'lib/geo_magic/location.rb', line 51

def initialize name, code
  @name = name
  @code = code        
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



49
50
51
# File 'lib/geo_magic/location.rb', line 49

def code
  @code
end

#nameObject

Returns the value of attribute name.



49
50
51
# File 'lib/geo_magic/location.rb', line 49

def name
  @name
end

Instance Method Details

#to_sObject



56
57
58
# File 'lib/geo_magic/location.rb', line 56

def to_s
  "region: #{name}, code: #{code}"
end