Class: GeoMagic::Location::Region
- Inherits:
-
Object
- Object
- GeoMagic::Location::Region
- Defined in:
- lib/geo_magic/location.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, code) ⇒ Region
constructor
A new instance of Region.
- #to_s ⇒ Object
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
#code ⇒ Object
Returns the value of attribute code.
49 50 51 |
# File 'lib/geo_magic/location.rb', line 49 def code @code end |
#name ⇒ Object
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_s ⇒ Object
56 57 58 |
# File 'lib/geo_magic/location.rb', line 56 def to_s "region: #{name}, code: #{code}" end |