Class: Coinbase::Wallet::CurrentUser

Inherits:
User show all
Defined in:
lib/coinbase/wallet/models/user.rb

Instance Method Summary collapse

Methods inherited from APIObject

#format, #initialize, #method_missing, #refresh!, #respond_to_missing?, #update

Constructor Details

This class inherits a constructor from Coinbase::Wallet::APIObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Coinbase::Wallet::APIObject

Instance Method Details

#update!(params = {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/coinbase/wallet/models/user.rb', line 7

def update!(params = {})
  @client.update_current_user(params) do |data, resp|
    update(resp.data)
    yield(resp.data, resp) if block_given?
  end
end