Module: Dnsimple::Client::Identity::StaticHelpers

Included in:
V2
Defined in:
lib/dnsimple/client/identity.rb

Instance Method Summary collapse

Instance Method Details

#whoami(client, *args) ⇒ Hash

Calls Dnsimple::Client::Identity#whoami and directly returns the response data.

Parameters:

Returns:

  • (Hash)

Raises:

See Also:


30
31
32
# File 'lib/dnsimple/client/identity.rb', line 30

def whoami(client, *args)
  client.identity.whoami(*args).data
end