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
Returns a new instance of PostPaymentRedirectUrls.
43974 43975 43976 43977 43978 43979 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 43974 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.
43972 43973 43974 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 43972 def failure @failure end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
43972 43973 43974 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 43972 def success @success end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
43985 43986 43987 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 43985 def copy(incoming={}) PostPaymentRedirectUrls.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
43989 43990 43991 43992 43993 43994 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 43989 def to_hash { :success => success, :failure => failure } end |
#to_json ⇒ Object
43981 43982 43983 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 43981 def to_json JSON.dump(to_hash) end |