Class: Hook0::Generated::QuotasApi
- Inherits:
-
Object
- Object
- Hook0::Generated::QuotasApi
- Defined in:
- lib/hook0/generated/api.rb
Overview
What the API declares under quotas, issued through the transport it is handed.
Instance Method Summary collapse
-
#get ⇒ QuotasResponse
Get quotas.
-
#initialize(transport) ⇒ QuotasApi
constructor
A new instance of QuotasApi.
Constructor Details
#initialize(transport) ⇒ QuotasApi
Returns a new instance of QuotasApi.
662 663 664 |
# File 'lib/hook0/generated/api.rb', line 662 def initialize(transport) @transport = transport end |
Instance Method Details
#get ⇒ QuotasResponse
Get quotas
669 670 671 672 673 674 675 676 677 678 679 |
# File 'lib/hook0/generated/api.rb', line 669 def get read_answer( @transport.request( "GET", "/api/v1/quotas/", [], nil ), QuotasResponse.method(:from_json) ) end |