Class: Io::Flow::V0::Models::PaymentProcessorAccountReference
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PaymentProcessorAccountReference
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentProcessorAccountReference
constructor
A new instance of PaymentProcessorAccountReference.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ PaymentProcessorAccountReference
Returns a new instance of PaymentProcessorAccountReference.
44590 44591 44592 44593 44594 44595 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44590 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:organization, :key], 'PaymentProcessorAccountReference') @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String) @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String) end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
44588 44589 44590 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44588 def key @key end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
44588 44589 44590 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44588 def organization @organization end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
44601 44602 44603 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44601 def copy(incoming={}) PaymentProcessorAccountReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
44605 44606 44607 44608 44609 44610 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44605 def to_hash { :organization => organization, :key => key } end |
#to_json ⇒ Object
44597 44598 44599 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44597 def to_json JSON.dump(to_hash) end |