Class: Cryptohopper::Resources::User

Inherits:
Object
  • Object
show all
Defined in:
lib/cryptohopper/resources/user.rb

Overview

‘client.user` — authenticated user profile.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ User

Returns a new instance of User.



7
8
9
# File 'lib/cryptohopper/resources/user.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#getObject

Fetch the authenticated user’s profile. Requires ‘user` scope.



12
13
14
# File 'lib/cryptohopper/resources/user.rb', line 12

def get
  @client._request("GET", "/user/get")
end