Class: HasGeoLookup::GeoboundaryResult

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

Overview

Struct to wrap a Geoboundary result for consistent API

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#distance_kmObject

Returns the value of attribute distance_km

Returns:

  • (Object)

    the current value of distance_km



50
51
52
# File 'lib/has_geo_lookup/concern.rb', line 50

def distance_km
  @distance_km
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



50
51
52
# File 'lib/has_geo_lookup/concern.rb', line 50

def level
  @level
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



50
51
52
# File 'lib/has_geo_lookup/concern.rb', line 50

def name
  @name
end

#recordObject

Returns the value of attribute record

Returns:

  • (Object)

    the current value of record



50
51
52
# File 'lib/has_geo_lookup/concern.rb', line 50

def record
  @record
end

Instance Method Details

#feature_classObject



51
# File 'lib/has_geo_lookup/concern.rb', line 51

def feature_class; level; end

#feature_codeObject



52
# File 'lib/has_geo_lookup/concern.rb', line 52

def feature_code; level; end