Class: Io::Flow::V0::Models::CheckoutUrlsForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::CheckoutUrlsForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#confirmation ⇒ Object
readonly
Returns the value of attribute confirmation.
-
#continue_shopping ⇒ Object
readonly
Returns the value of attribute continue_shopping.
-
#invalid_checkout ⇒ Object
readonly
Returns the value of attribute invalid_checkout.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ CheckoutUrlsForm
constructor
A new instance of CheckoutUrlsForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ CheckoutUrlsForm
Returns a new instance of CheckoutUrlsForm.
36307 36308 36309 36310 36311 36312 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36307 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @continue_shopping = (x = opts.delete(:continue_shopping); x.nil? ? nil : HttpClient::Preconditions.assert_class('continue_shopping', x, String)) @confirmation = (x = opts.delete(:confirmation); x.nil? ? nil : HttpClient::Preconditions.assert_class('confirmation', x, String)) @invalid_checkout = (x = opts.delete(:invalid_checkout); x.nil? ? nil : HttpClient::Preconditions.assert_class('invalid_checkout', x, String)) end |
Instance Attribute Details
#confirmation ⇒ Object (readonly)
Returns the value of attribute confirmation.
36305 36306 36307 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36305 def confirmation @confirmation end |
#continue_shopping ⇒ Object (readonly)
Returns the value of attribute continue_shopping.
36305 36306 36307 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36305 def continue_shopping @continue_shopping end |
#invalid_checkout ⇒ Object (readonly)
Returns the value of attribute invalid_checkout.
36305 36306 36307 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36305 def invalid_checkout @invalid_checkout end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
36318 36319 36320 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36318 def copy(incoming={}) CheckoutUrlsForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
36322 36323 36324 36325 36326 36327 36328 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36322 def to_hash { :continue_shopping => continue_shopping, :confirmation => confirmation, :invalid_checkout => invalid_checkout } end |
#to_json ⇒ Object
36314 36315 36316 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36314 def to_json JSON.dump(to_hash) end |