Class: Waqi::StationPin
- Inherits:
-
Struct
- Object
- Struct
- Waqi::StationPin
- Defined in:
- lib/waqi/models/station_pin.rb
Instance Attribute Summary collapse
-
#aqi ⇒ Object
Returns the value of attribute aqi.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lon ⇒ Object
Returns the value of attribute lon.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
Instance Attribute Details
#aqi ⇒ Object
Returns the value of attribute aqi
2 3 4 |
# File 'lib/waqi/models/station_pin.rb', line 2 def aqi @aqi end |
#lat ⇒ Object
Returns the value of attribute lat
2 3 4 |
# File 'lib/waqi/models/station_pin.rb', line 2 def lat @lat end |
#lon ⇒ Object
Returns the value of attribute lon
2 3 4 |
# File 'lib/waqi/models/station_pin.rb', line 2 def lon @lon end |
#uid ⇒ Object
Returns the value of attribute 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 |