Class: GandiV5::Billing

Inherits:
Object
  • Object
show all
Defined in:
lib/gandi_v5/billing.rb,
lib/gandi_v5/billing/info.rb,
lib/gandi_v5/billing/info/prepaid.rb

Overview

Gandi Billing API.

Defined Under Namespace

Classes: Info

Class Method Summary collapse

Class Method Details

.info(sharing_id = nil) ⇒ GandiV5::Billing::Info

Get account info (defaults to currently authenticated user).

Parameters:

  • url (sharing_id)

    the Sharing ID of the organisation to get info for defaults to the user the api key belomgs to.

Returns:

Raises:

See Also:



13
14
15
16
# File 'lib/gandi_v5/billing.rb', line 13

def self.info(sharing_id = nil)
  _response, data = GandiV5.get url(sharing_id)
  GandiV5::Billing::Info.from_gandi data
end