Class: HasGeoLookup::Result
- Inherits:
-
Struct
- Object
- Struct
- HasGeoLookup::Result
- Defined in:
- lib/has_geo_lookup/concern.rb
Overview
Struct to wrap a Geoname result with distance in kilometers
Instance Attribute Summary collapse
-
#distance_km ⇒ Object
Returns the value of attribute distance_km.
-
#feature_class ⇒ Object
Returns the value of attribute feature_class.
-
#feature_code ⇒ Object
Returns the value of attribute feature_code.
-
#record ⇒ Object
Returns the value of attribute record.
Instance Attribute Details
#distance_km ⇒ Object
Returns the value of attribute distance_km
47 48 49 |
# File 'lib/has_geo_lookup/concern.rb', line 47 def distance_km @distance_km end |
#feature_class ⇒ Object
Returns the value of attribute feature_class
47 48 49 |
# File 'lib/has_geo_lookup/concern.rb', line 47 def feature_class @feature_class end |
#feature_code ⇒ Object
Returns the value of attribute feature_code
47 48 49 |
# File 'lib/has_geo_lookup/concern.rb', line 47 def feature_code @feature_code end |
#record ⇒ Object
Returns the value of attribute record
47 48 49 |
# File 'lib/has_geo_lookup/concern.rb', line 47 def record @record end |