Class: LocalGeocoder::Entity
- Inherits:
-
Struct
- Object
- Struct
- LocalGeocoder::Entity
- Defined in:
- lib/local_geocoder/data_source.rb
Instance Attribute Summary collapse
-
#geometries ⇒ Object
Returns the value of attribute geometries.
-
#long_name ⇒ Object
Returns the value of attribute long_name.
-
#short_name ⇒ Object
Returns the value of attribute short_name.
Instance Method Summary collapse
Instance Attribute Details
#geometries ⇒ Object
Returns the value of attribute geometries
3 4 5 |
# File 'lib/local_geocoder/data_source.rb', line 3 def geometries @geometries end |
#long_name ⇒ Object
Returns the value of attribute long_name
3 4 5 |
# File 'lib/local_geocoder/data_source.rb', line 3 def long_name @long_name end |
#short_name ⇒ Object
Returns the value of attribute short_name
3 4 5 |
# File 'lib/local_geocoder/data_source.rb', line 3 def short_name @short_name end |
Instance Method Details
#inspect ⇒ Object
4 5 6 |
# File 'lib/local_geocoder/data_source.rb', line 4 def inspect "#{self.long_name}#{self.short_name.empty? ? "" : ' ('+self.short_name+')' }" end |