Class: Io::Flow::V0::Models::PostPaymentRedirectUrls
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PostPaymentRedirectUrls
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
The URLs to which the customer will be redirected based on the authorization status.
Instance Attribute Summary collapse
-
#failure ⇒ Object
readonly
Returns the value of attribute failure.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PostPaymentRedirectUrls
constructor
A new instance of PostPaymentRedirectUrls.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ PostPaymentRedirectUrls
44720 44721 44722 44723 44724 44725 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44720 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:success], 'PostPaymentRedirectUrls') @success = HttpClient::Preconditions.assert_class('success', opts.delete(:success), String) @failure = (x = opts.delete(:failure); x.nil? ? nil : HttpClient::Preconditions.assert_class('failure', x, String)) end |
Instance Attribute Details
#failure ⇒ Object (readonly)
Returns the value of attribute failure.
44718 44719 44720 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44718 def failure @failure end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
44718 44719 44720 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44718 def success @success end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
44731 44732 44733 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44731 def copy(incoming={}) PostPaymentRedirectUrls.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
44735 44736 44737 44738 44739 44740 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44735 def to_hash { :success => success, :failure => failure } end |
#to_json ⇒ Object
44727 44728 44729 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 44727 def to_json JSON.dump(to_hash) end |