Sha256: 2a8e2fad5cd6cfd20472d4d706dafc229680b7685ab8abdec99f54106c0b9366

Contents?: true

Size: 666 Bytes

Versions: 4

Compression:

Stored size: 666 Bytes

Contents

module Xcal
  module Parktronic
    module Routes
      module Nested

        module ValueGroups

          # Fetches value_groups for the specific metric
          # Executed as a method chain from the GenericResponse object
          #
          # Call example:
          #   metric(id).get_value_groups
          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

        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xcal-parktronic-1.3.0 lib/xcal/parktronic/routes/nested/value_groups.rb
xcal-parktronic-1.2.0 lib/xcal/parktronic/routes/nested/value_groups.rb
xcal-parktronic-1.1.1 lib/xcal/parktronic/routes/nested/value_groups.rb
xcal-parktronic-1.0.2 lib/xcal/parktronic/routes/nested/value_groups.rb