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

Returns:

  • (Object)

    the current value of city



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

def city
  @city
end

#countryObject

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



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

def country
  @country
end

#country_codeObject

Returns the value of attribute country_code

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of district



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

def district
  @district
end

#full_addressObject

Returns the value of attribute full_address

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of geometry



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

def geometry
  @geometry
end

#latFloat

latitude

Returns:

  • (Float)

    the current value of lat



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

def lat
  @lat
end

#lngFloat

longitude

Returns:

  • (Float)

    the current value of lng



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

def lng
  @lng
end

#municipalityObject

Returns the value of attribute municipality

Returns:

  • (Object)

    the current value of municipality



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

def municipality
  @municipality
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



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

def number
  @number
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



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

def state
  @state
end

#state_codeObject

Returns the value of attribute state_code

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of street



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

def street
  @street
end

#zipcodeObject

Returns the value of attribute zipcode

Returns:

  • (Object)

    the current value of zipcode



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

def zipcode
  @zipcode
end