Class: Coinone::Account::VirtualAccount
- Inherits:
-
Object
- Object
- Coinone::Account::VirtualAccount
- Defined in:
- lib/coinone/account/virtual_account.rb
Instance Attribute Summary collapse
-
#account_number ⇒ Object
readonly
Returns the value of attribute account_number.
-
#bank_name ⇒ Object
readonly
Returns the value of attribute bank_name.
-
#depositor ⇒ Object
readonly
Returns the value of attribute depositor.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ VirtualAccount
constructor
A new instance of VirtualAccount.
- #update_virtual_account(params = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ VirtualAccount
Returns a new instance of VirtualAccount.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/coinone/account/virtual_account.rb', line 10 def initialize(={}) @result = [:result] || nil @depositor = nil @account_number = nil @bank_name = nil update_virtual_account() end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
8 9 10 |
# File 'lib/coinone/account/virtual_account.rb', line 8 def account_number @account_number end |
#bank_name ⇒ Object (readonly)
Returns the value of attribute bank_name.
8 9 10 |
# File 'lib/coinone/account/virtual_account.rb', line 8 def bank_name @bank_name end |
#depositor ⇒ Object (readonly)
Returns the value of attribute depositor.
8 9 10 |
# File 'lib/coinone/account/virtual_account.rb', line 8 def depositor @depositor end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/coinone/account/virtual_account.rb', line 7 def result @result end |
Instance Method Details
#update_virtual_account(params = {}) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/coinone/account/virtual_account.rb', line 21 def update_virtual_account(params={}) @result = params[:result] if params.has_key? :result @depositor = params[:depositor] if params.has_key? :depositor @account_number = params[:accountNumber] if params.has_key? :accountNumber @bank_name = params[:bankName] if params.has_key? :bankName end |