class Bcoin::Client::Accounts

Attributes

client[R]

Contains an instance of Bcoin::Client::Wallet which adheres to the HTTP client interface but builds the URL correctly for the specific wallet which this account belongs to.

Public Instance Methods

base_path() click to toggle source
# File lib/bcoin/client/accounts.rb, line 14
def base_path
  '/account'
end
find(attr) click to toggle source
# File lib/bcoin/client/accounts.rb, line 25
def find attr
  Account.new(client, attr).refresh!
end
refresh!() click to toggle source
Calls superclass method
# File lib/bcoin/client/accounts.rb, line 18
def refresh!
  @collection = super.collect { |w|
    Account.new(client, name: w).refresh!
  }
  self
end