Class: Blueticks::Resources::AccountResource

Inherits:
BaseResource show all
Defined in:
lib/blueticks/resources/account.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#client

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Blueticks::BaseResource

Instance Method Details

#retrieveObject

Retrieve the authenticated account.

Returns the account associated with the API key used for this request.



12
13
14
15
# File 'lib/blueticks/resources/account.rb', line 12

def retrieve
  data = client.request("GET", "/v1/account")
  Types::Account.from_hash(data)
end