Class: Waqi::StationPin

Inherits:
Struct
  • Object
show all
Defined in:
lib/waqi/models/station_pin.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aqiObject

Returns the value of attribute aqi

Returns:

  • (Object)

    the current value of aqi



2
3
4
# File 'lib/waqi/models/station_pin.rb', line 2

def aqi
  @aqi
end

#latObject

Returns the value of attribute lat

Returns:

  • (Object)

    the current value of lat



2
3
4
# File 'lib/waqi/models/station_pin.rb', line 2

def lat
  @lat
end

#lonObject

Returns the value of attribute lon

Returns:

  • (Object)

    the current value of lon



2
3
4
# File 'lib/waqi/models/station_pin.rb', line 2

def lon
  @lon
end

#uidObject

Returns the value of attribute uid

Returns:

  • (Object)

    the current value of uid



2
3
4
# File 'lib/waqi/models/station_pin.rb', line 2

def uid
  @uid
end

Class Method Details

.parse(hash) ⇒ Object



3
4
5
# File 'lib/waqi/models/station_pin.rb', line 3

def self.parse(hash)
  new(*hash.values_at(*self.members))
end