Module: DublinBikes::Client::StationStatus
- Included in:
- DublinBikes::Client
- Defined in:
- lib/dublin_bikes/client/station_status.rb
Instance Method Summary collapse
Instance Method Details
#station_status(id) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/dublin_bikes/client/station_status.rb', line 4 def station_status(id) response = get("stationdetails/dublin/#{id}") payload = response.body station = DublinBikes::ApiStation.parse(payload) status = DublinBikes::StationStatus.new(station) end |