Method: Dnsimple::Client::Identity#whoami
- Defined in:
- lib/dnsimple/client/identity.rb
#whoami(options = {}) ⇒ Dnsimple::Response<Dnsimple::Struct::Whoami>
Gets the information about the current authenticated context.
12 13 14 15 16 |
# File 'lib/dnsimple/client/identity.rb', line 12 def whoami( = {}) response = client.get(Client.versioned("/whoami"), ) Dnsimple::Response.new(response, Struct::Whoami.new(response["data"])) end |