Class: HasGeoLookup::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/has_geo_lookup/concern.rb

Overview

Struct to wrap a Geoname result with distance in kilometers

Instance Attribute Summary collapse

Instance Attribute Details

#distance_kmObject

Returns the value of attribute distance_km

Returns:

  • (Object)

    the current value of distance_km



47
48
49
# File 'lib/has_geo_lookup/concern.rb', line 47

def distance_km
  @distance_km
end

#feature_classObject

Returns the value of attribute feature_class

Returns:

  • (Object)

    the current value of feature_class



47
48
49
# File 'lib/has_geo_lookup/concern.rb', line 47

def feature_class
  @feature_class
end

#feature_codeObject

Returns the value of attribute feature_code

Returns:

  • (Object)

    the current value of feature_code



47
48
49
# File 'lib/has_geo_lookup/concern.rb', line 47

def feature_code
  @feature_code
end

#recordObject

Returns the value of attribute record

Returns:

  • (Object)

    the current value of record



47
48
49
# File 'lib/has_geo_lookup/concern.rb', line 47

def record
  @record
end