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:



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

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