Class: Coinone::Account::AccountInfo::VirtualAccountInfo
- Inherits:
-
Object
- Object
- Coinone::Account::AccountInfo::VirtualAccountInfo
- Defined in:
- lib/coinone/account/account_info/virtual_account_info.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.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ VirtualAccountInfo
constructor
A new instance of VirtualAccountInfo.
- #update_info(params = {}) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ VirtualAccountInfo
Returns a new instance of VirtualAccountInfo.
8 9 10 11 12 13 |
# File 'lib/coinone/account/account_info/virtual_account_info.rb', line 8 def initialize(params={}) @depositor = nil @account_number = nil @bank_name = nil update_info(params) end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
6 7 8 |
# File 'lib/coinone/account/account_info/virtual_account_info.rb', line 6 def account_number @account_number end |
#bank_name ⇒ Object (readonly)
Returns the value of attribute bank_name.
6 7 8 |
# File 'lib/coinone/account/account_info/virtual_account_info.rb', line 6 def bank_name @bank_name end |
#depositor ⇒ Object (readonly)
Returns the value of attribute depositor.
6 7 8 |
# File 'lib/coinone/account/account_info/virtual_account_info.rb', line 6 def depositor @depositor end |
Instance Method Details
#update_info(params = {}) ⇒ Object
15 16 17 18 19 |
# File 'lib/coinone/account/account_info/virtual_account_info.rb', line 15 def update_info(params={}) @depositor = params[:depositor].strip if params.has_key? :depositor @account_number = params[:accountNumber].strip if params.has_key? :accountNumber @bank_name = params[:bankName].strip if params.has_key? :bankName end |