Class: LocalGeocoder::Entity

Inherits:
Struct
  • Object
show all
Defined in:
lib/local_geocoder/data_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#geometriesObject

Returns the value of attribute geometries

Returns:

  • (Object)

    the current value of geometries



3
4
5
# File 'lib/local_geocoder/data_source.rb', line 3

def geometries
  @geometries
end

#long_nameObject

Returns the value of attribute long_name

Returns:

  • (Object)

    the current value of long_name



3
4
5
# File 'lib/local_geocoder/data_source.rb', line 3

def long_name
  @long_name
end

#short_nameObject

Returns the value of attribute short_name

Returns:

  • (Object)

    the current value of short_name



3
4
5
# File 'lib/local_geocoder/data_source.rb', line 3

def short_name
  @short_name
end

Instance Method Details

#inspectObject



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