Class: Hook0::Generated::QuotasApi

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

Constructor Details

#initialize(transport) ⇒ QuotasApi

Returns a new instance of QuotasApi.

Parameters:

  • transport (Object)

    what one request is issued through



662
663
664
# File 'lib/hook0/generated/api.rb', line 662

def initialize(transport)
  @transport = transport
end

Instance Method Details

#getQuotasResponse

Get quotas

Returns:



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