Class: MisarReach::PlanResource

Inherits:
Resource
  • Object
show all
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

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from MisarReach::Resource

Instance Method Details

#getObject

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