Sha256: c59f4f604bca1d24184cefffe6d852e81d884b0ab024c8a8ac4926d7da5303ab
Contents?: true
Size: 698 Bytes
Versions: 6
Compression:
Stored size: 698 Bytes
Contents
module Dnsimple class Client module Accounts # Lists the accounts the authenticated entity has access to. # # @see https://developer.dnsimple.com/v2/accounts # # @example List the accounts: # client.accounts.list # # @param [Hash] options # @return [Dnsimple::Response<Dnsimple::Struct::Account>] # # @raise [Dnsimple::RequestError] def accounts(options = {}) response = client.get(Client.versioned("/accounts"), options) Dnsimple::Response.new(response, response["data"].map { |r| Struct::Account.new(r) }) end alias list accounts alias list_accounts accounts end end end
Version data entries
6 entries across 6 versions & 1 rubygems