Class: HasGeoLookup::GeoboundaryResult
- Inherits:
-
Struct
- Object
- Struct
- HasGeoLookup::GeoboundaryResult
- Defined in:
- lib/has_geo_lookup/concern.rb
Overview
Struct to wrap a Geoboundary result for consistent API
Instance Attribute Summary collapse
-
#distance_km ⇒ Object
Returns the value of attribute distance_km.
-
#level ⇒ Object
Returns the value of attribute level.
-
#name ⇒ Object
Returns the value of attribute name.
-
#record ⇒ Object
Returns the value of attribute record.
Instance Method Summary collapse
Instance Attribute Details
#distance_km ⇒ Object
Returns the value of attribute distance_km
50 51 52 |
# File 'lib/has_geo_lookup/concern.rb', line 50 def distance_km @distance_km end |
#level ⇒ Object
Returns the value of attribute level
50 51 52 |
# File 'lib/has_geo_lookup/concern.rb', line 50 def level @level end |
#name ⇒ Object
Returns the value of attribute name
50 51 52 |
# File 'lib/has_geo_lookup/concern.rb', line 50 def name @name end |
#record ⇒ Object
Returns the value of attribute record
50 51 52 |
# File 'lib/has_geo_lookup/concern.rb', line 50 def record @record end |
Instance Method Details
#feature_class ⇒ Object
51 |
# File 'lib/has_geo_lookup/concern.rb', line 51 def feature_class; level; end |
#feature_code ⇒ Object
52 |
# File 'lib/has_geo_lookup/concern.rb', line 52 def feature_code; level; end |