Module: Twelve::API::Gauges::Locations
- Included in:
- Proxy
- Defined in:
- lib/twelve/api/gauges/locations.rb
Overview
The Locations module handles accessing locations
Instance Method Summary collapse
-
#locations(date = nil) ⇒ Object
Returns monthly locations for a gauge.
Instance Method Details
#locations(date = nil) ⇒ Object
Returns monthly locations for a gauge
date - String of date
Returns json
21 22 23 24 25 26 27 28 |
# File 'lib/twelve/api/gauges/locations.rb', line 21 def locations(date=nil) attributes = {} connection.get do |request| request.url "#{path_prefix}/locations" request.params['date'] = date if date && date.is_a?(String) end.body end |