class Cwallet::Wallet::Account

Public Instance Methods

address(address_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 33
def address(address_id, params = {})
  @client.address(self['id'], address_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
address_transactions(address_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 39
def address_transactions(address_id, params = {})
  @client.address_transactions(self['id'], address_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
addresses(params = {}) { |data, resp| ... } click to toggle source

Addresses

# File lib/cwallet/wallet/models/account.rb, line 27
def addresses(params = {})
  @client.addresses(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
buy(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 99
def buy(params = {})
  @client.buy(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
commit_buy(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 105
def commit_buy(transaction_id, params = {})
  @client.commit_buy(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
commit_deposit(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 159
def commit_deposit(transaction_id, params = {})
  @client.commit_deposit(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
commit_sell(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 132
def commit_sell(transaction_id, params = {})
  @client.commit_sell(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
commit_withdrawal(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 186
def commit_withdrawal(transaction_id, params = {})
  @client.commit_withdrawal(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
create_address(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 45
def create_address(params = {})
  @client.create_address(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
delete!(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 18
def delete!(params = {})
  @client.delete_account(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
deposit(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 153
def deposit(params = {})
  @client.deposit(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_buy(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 93
def list_buy(transaction_id, params = {})
  @client.list_buy(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_buys(params = {}) { |data, resp| ... } click to toggle source

Buys

# File lib/cwallet/wallet/models/account.rb, line 87
def list_buys(params = {})
  @client.list_buys(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_deposit(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 147
def list_deposit(transaction_id, params = {})
  @client.list_deposit(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_deposits(params = {}) { |data, resp| ... } click to toggle source

Deposit

# File lib/cwallet/wallet/models/account.rb, line 141
def list_deposits(params = {})
  @client.list_deposits(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_sell(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 120
def list_sell(transaction_id, params = {})
  @client.list_sell(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_sells(params = {}) { |data, resp| ... } click to toggle source

Sells

# File lib/cwallet/wallet/models/account.rb, line 114
def list_sells(params = {})
  @client.list_sells(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_withdrawal(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 174
def list_withdrawal(transaction_id, params = {})
  @client.list_withdrawal(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
list_withdrawals(params = {}) { |data, resp| ... } click to toggle source

Withdrawals

# File lib/cwallet/wallet/models/account.rb, line 168
def list_withdrawals(params = {})
  @client.list_withdrawals(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
make_primary!(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 11
def make_primary!(params = {})
  @client.set_primary_account(self['id'], params) do |data, resp|
    update(data)
    yield(data, resp) if block_given?
  end
end
request(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 78
def request(params = {})
  @client.request(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
sell(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 126
def sell(params = {})
  @client.sell(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
send(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 66
def send(params = {})
  @client.send(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
transaction(transaction_id, params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 60
def transaction(transaction_id, params = {})
  @client.transaction(self['id'], transaction_id, params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
transactions(params = {}) { |data, resp| ... } click to toggle source

Transactions

# File lib/cwallet/wallet/models/account.rb, line 54
def transactions(params = {})
  @client.transactions(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
transfer(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 72
def transfer(params = {})
  @client.transfer(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end
update!(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 4
def update!(params = {})
  @client.update_account(self['id'], params) do |data, resp|
    update(data)
    yield(data, resp) if block_given?
  end
end
withdraw(params = {}) { |data, resp| ... } click to toggle source
# File lib/cwallet/wallet/models/account.rb, line 180
def withdraw(params = {})
  @client.withdraw(self['id'], params) do |data, resp|
    yield(data, resp) if block_given?
  end
end