class Netatmo::Place

Attributes

altitude[RW]
city[RW]
country[RW]
location[RW]
timezone[RW]

Public Class Methods

new(data) click to toggle source
# File lib/netatmo/place.rb, line 9
def initialize(data)
  return if data.nil?

  self.altitude = data['altitude']
  self.city = data['city']
  self.country = data['country']
  self.timezone = data['timezone']
  self.location = ::Geocoder.search(data['location'].reverse)
end