Class: Io::Flow::V0::Models::DefaultBankAccountForm

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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
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_hashObject



38870
38871
38872
38873
38874
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38870

def to_hash
  {
    :bank_account_id => 
  }
end

#to_jsonObject



38862
38863
38864
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 38862

def to_json
  JSON.dump(to_hash)
end