Class: Io::Flow::V0::Models::ChannelBankAccount
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ChannelBankAccount
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#last4 ⇒ Object
readonly
Returns the value of attribute last4.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ChannelBankAccount
constructor
A new instance of ChannelBankAccount.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ChannelBankAccount
Returns a new instance of ChannelBankAccount.
34883 34884 34885 34886 34887 34888 34889 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34883 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :key, :last4], 'ChannelBankAccount') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String) @last4 = HttpClient::Preconditions.assert_class('last4', opts.delete(:last4), String) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
34881 34882 34883 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34881 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
34881 34882 34883 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34881 def key @key end |
#last4 ⇒ Object (readonly)
Returns the value of attribute last4.
34881 34882 34883 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34881 def last4 @last4 end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
34895 34896 34897 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34895 def copy(incoming={}) ChannelBankAccount.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
34899 34900 34901 34902 34903 34904 34905 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34899 def to_hash { :id => id, :key => key, :last4 => last4 } end |
#to_json ⇒ Object
34891 34892 34893 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34891 def to_json JSON.dump(to_hash) end |