Module: Xcal::Parktronic::Routes::Nested::ValueGroups
- Included in:
- GenericResponse
- Defined in:
- lib/xcal/parktronic/routes/nested/value_groups.rb
Instance Method Summary collapse
-
#get_value_groups(args = {}) ⇒ Object
Fetches value_groups for the specific metric Executed as a method chain from the GenericResponse object.
Instance Method Details
#get_value_groups(args = {}) ⇒ Object
Fetches value_groups for the specific metric Executed as a method chain from the GenericResponse object
Call example:
metric(id).get_value_groups
13 14 15 16 17 18 |
# File 'lib/xcal/parktronic/routes/nested/value_groups.rb', line 13 def get_value_groups(args = {}) args.merge!(:access_token => client.access_token) response = client.get_response("/#{client.api_version}/metrics/#{id}/value_groups?#{URI.encode_www_form(args)}") Xcal::Parktronic::GenericResponse.new(response.body, client) end |