Class: Bitshares::Account
- Inherits:
-
Object
- Object
- Bitshares::Account
- Defined in:
- lib/bitshares/account.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#wallet ⇒ Object
readonly
Returns the value of attribute wallet.
Instance Method Summary collapse
-
#initialize(wallet, name) ⇒ Account
constructor
A new instance of Account.
- #method_missing(m, *args) ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/bitshares/account.rb', line 5 def name @name end |
#wallet ⇒ Object (readonly)
Returns the value of attribute wallet.
5 6 7 |
# File 'lib/bitshares/account.rb', line 5 def wallet @wallet end |