Class: Bitshares::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/bitshares/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wallet, name) ⇒ Account

Returns a new instance of Account.



7
8
9
10
# File 'lib/bitshares/account.rb', line 7

def initialize(wallet, name)
  @wallet = wallet
  @name = name
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



12
13
14
# File 'lib/bitshares/account.rb', line 12

def method_missing(m, *args)
  CLIENT.request('wallet_account_' + m.to_s, [name] + args)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/bitshares/account.rb', line 5

def name
  @name
end

#walletObject (readonly)

Returns the value of attribute wallet.



5
6
7
# File 'lib/bitshares/account.rb', line 5

def wallet
  @wallet
end