Class: MisarReach::PlanResource
- Defined in:
- lib/misar_reach/client.rb
Overview
The subscription behind the API key.
Read this before an expensive run rather than discovering the ceiling through
an UpgradeRequiredError halfway through: a 402 says a call was refused,
whereas usage says what is left before anything is spent.
Instance Method Summary collapse
-
#get ⇒ Object
GET /plan — plan, caps, per-feature usage and the upgrade offer.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from MisarReach::Resource
Instance Method Details
#get ⇒ Object
GET /plan — plan, caps, per-feature usage and the upgrade offer.
A null limit means unlimited, and remaining is nil with it rather than 0
— 0 would read as exhausted.
481 482 483 |
# File 'lib/misar_reach/client.rb', line 481 def get @client.request(:get, "/plan") end |