Class: Polar::Resources::Metrics
- Defined in:
- lib/polar/resources/metrics.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#get(params = {}) ⇒ Hash
Get metrics.
-
#limits(params = {}) ⇒ Hash
Get metrics limits.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Polar::Resources::Base
Instance Method Details
#get(params = {}) ⇒ Hash
Get metrics
15 16 17 18 |
# File 'lib/polar/resources/metrics.rb', line 15 def get(params = {}) response = get('/metrics', params) response.body end |
#limits(params = {}) ⇒ Hash
Get metrics limits
24 25 26 27 |
# File 'lib/polar/resources/metrics.rb', line 24 def limits(params = {}) response = get('/metrics/limits', params) response.body end |