class Netatmo::Weather::StationData

Attributes

devices[RW]
user[RW]

Public Class Methods

new(response) click to toggle source
# File lib/netatmo/weather/station_data.rb, line 8
def initialize(response)
  self.devices = []

  response['devices'].each do |device|
    devices << Device.parse(device)
  end

  self.user = Netatmo::User.new(response['user'])
end