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
-
#continue_shopping ⇒ Object
readonly
Returns the value of attribute continue_shopping.
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.
23908 23909 23910 23911 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23908 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)) end |
Instance Attribute Details
#continue_shopping ⇒ Object (readonly)
Returns the value of attribute continue_shopping.
23906 23907 23908 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23906 def continue_shopping @continue_shopping end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
23917 23918 23919 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23917 def copy(incoming={}) CheckoutUrlsForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
23921 23922 23923 23924 23925 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23921 def to_hash { :continue_shopping => continue_shopping } end |
#to_json ⇒ Object
23913 23914 23915 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23913 def to_json JSON.dump(to_hash) end |