Class: Geoloco::Location

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/geoloco/location.rb,
lib/geoloco/location.rb

Overview

Location data

Instance Attribute Summary collapse

Instance Attribute Details

#cityObject

Returns the value of attribute city



6
7
8
# File 'lib/geoloco/location.rb', line 6

def city
  @city
end

#countryObject

Returns the value of attribute country



6
7
8
# File 'lib/geoloco/location.rb', line 6

def country
  @country
end

#country_codeObject

Returns the value of attribute country_code



6
7
8
# File 'lib/geoloco/location.rb', line 6

def country_code
  @country_code
end

#districtObject

Returns the value of attribute district



6
7
8
# File 'lib/geoloco/location.rb', line 6

def district
  @district
end

#full_addressObject

Returns the value of attribute full_address



6
7
8
# File 'lib/geoloco/location.rb', line 6

def full_address
  @full_address
end

#geometryObject

Returns the value of attribute geometry



6
7
8
# File 'lib/geoloco/location.rb', line 6

def geometry
  @geometry
end

#latFloat

latitude



28
29
30
# File 'lib/geoloco/location.rb', line 28

def lat
  @lat
end

#lngFloat

longitude



28
29
30
# File 'lib/geoloco/location.rb', line 28

def lng
  @lng
end

#municipalityObject

Returns the value of attribute municipality



6
7
8
# File 'lib/geoloco/location.rb', line 6

def municipality
  @municipality
end

#numberObject

Returns the value of attribute number



6
7
8
# File 'lib/geoloco/location.rb', line 6

def number
  @number
end

#stateObject

Returns the value of attribute state



6
7
8
# File 'lib/geoloco/location.rb', line 6

def state
  @state
end

#state_codeObject

Returns the value of attribute state_code



6
7
8
# File 'lib/geoloco/location.rb', line 6

def state_code
  @state_code
end

#streetObject

Returns the value of attribute street



6
7
8
# File 'lib/geoloco/location.rb', line 6

def street
  @street
end

#zipcodeObject

Returns the value of attribute zipcode



6
7
8
# File 'lib/geoloco/location.rb', line 6

def zipcode
  @zipcode
end