Class: Nombaone::Resources::Metrics
- Inherits:
-
BaseResource
- Object
- BaseResource
- Nombaone::Resources::Metrics
- Defined in:
- lib/nombaone/resources/metrics.rb,
sig/nombaone/resources.rbs
Overview
Metrics — MRR, churn, and the dunning funnel, computed from the ledger on read (never stored, never stale).
Instance Method Summary collapse
-
#billing(from: OMIT, to: OMIT, request_options: {}) ⇒ NombaObject
Billing KPIs over a window (defaults to a recent window server-side).
Methods inherited from BaseResource
#encode, #initialize, #request, #request_page
Constructor Details
This class inherits a constructor from Nombaone::Resources::BaseResource
Instance Method Details
#billing(from: OMIT, to: OMIT, request_options: {}) ⇒ NombaObject
Billing KPIs over a window (defaults to a recent window server-side).
19 20 21 |
# File 'lib/nombaone/resources/metrics.rb', line 19 def billing(from: OMIT, to: OMIT, request_options: {}) request(:get, "/metrics/billing", query: { from: from, to: to }, options: ) end |