Class: Cryptohopper::Resources::User
- Inherits:
-
Object
- Object
- Cryptohopper::Resources::User
- Defined in:
- lib/cryptohopper/resources/user.rb
Overview
‘client.user` — authenticated user profile.
Instance Method Summary collapse
-
#get ⇒ Object
Fetch the authenticated user’s profile.
-
#initialize(client) ⇒ User
constructor
A new instance of User.
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
#get ⇒ Object
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 |