Class: OpenWeather::Models::Station
- Inherits:
-
Model
- Object
- Hashie::Trash
- Model
- OpenWeather::Models::Station
show all
- Defined in:
- lib/open_weather/models/station.rb
Instance Attribute Summary
Attributes inherited from Model
#options
Instance Method Summary
collapse
Methods inherited from Model
#initialize, #units
Instance Method Details
#update!(attributes) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/open_weather/models/station.rb', line 23
def update!(attributes)
data = OpenWeather::Client.new.update_station(id, attributes)
update_attributes!(data)
self
end
|