Class: Coinone::Account::DepositAddress::Wallet
- Inherits:
-
Object
- Object
- Coinone::Account::DepositAddress::Wallet
- Defined in:
- lib/coinone/account/deposit_address/wallet.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Wallet
constructor
A new instance of Wallet.
- #update_address(params = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Wallet
Returns a new instance of Wallet.
11 12 13 14 15 16 |
# File 'lib/coinone/account/deposit_address/wallet.rb', line 11 def initialize(={}) @address = nil update_address() end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
9 10 11 |
# File 'lib/coinone/account/deposit_address/wallet.rb', line 9 def address @address end |
Instance Method Details
#update_address(params = {}) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/coinone/account/deposit_address/wallet.rb', line 18 def update_address(params={}) @address = params[:btc] if params.has_key? :btc @address = params[:eth] if params.has_key? :eth @address = params[:etc] if params.has_key? :etc end |