Module: Dnsimple::Client::Accounts
- Included in:
- AccountsService
- Defined in:
- lib/dnsimple/client/accounts.rb
Instance Method Summary collapse
-
#accounts(options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Account>
(also: #list_accounts)
Lists the accounts the authenticated entity has access to.
Instance Method Details
#accounts(options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Account> Also known as: list_accounts
Lists the accounts the authenticated entity has access to.
18 19 20 21 22 |
# File 'lib/dnsimple/client/accounts.rb', line 18 def accounts( = {}) response = client.get(Client.versioned("/accounts"), ) Dnsimple::Response.new(response, response["data"].map { |r| Struct::Account.new(r) }) end |