Class: Io::Flow::V0::Models::DefaultBankAccountForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::DefaultBankAccountForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#bank_account_id ⇒ Object
readonly
Returns the value of attribute bank_account_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ DefaultBankAccountForm
constructor
A new instance of DefaultBankAccountForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ DefaultBankAccountForm
Returns a new instance of DefaultBankAccountForm.
38856 38857 38858 38859 38860 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38856 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:bank_account_id], 'DefaultBankAccountForm') @bank_account_id = HttpClient::Preconditions.assert_class('bank_account_id', opts.delete(:bank_account_id), String) end |
Instance Attribute Details
#bank_account_id ⇒ Object (readonly)
Returns the value of attribute bank_account_id.
38854 38855 38856 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38854 def bank_account_id @bank_account_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
38866 38867 38868 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38866 def copy(incoming={}) DefaultBankAccountForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
38870 38871 38872 38873 38874 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38870 def to_hash { :bank_account_id => bank_account_id } end |
#to_json ⇒ Object
38862 38863 38864 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38862 def to_json JSON.dump(to_hash) end |