Class: Io::Flow::V0::Models::EmailAbandonedOrderUrls
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::EmailAbandonedOrderUrls
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#checkout ⇒ Object
readonly
Returns the value of attribute checkout.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ EmailAbandonedOrderUrls
constructor
A new instance of EmailAbandonedOrderUrls.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ EmailAbandonedOrderUrls
Returns a new instance of EmailAbandonedOrderUrls.
40748 40749 40750 40751 40752 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40748 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:checkout], 'EmailAbandonedOrderUrls') @checkout = HttpClient::Preconditions.assert_class('checkout', opts.delete(:checkout), String) end |
Instance Attribute Details
#checkout ⇒ Object (readonly)
Returns the value of attribute checkout.
40746 40747 40748 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40746 def checkout @checkout end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
40758 40759 40760 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40758 def copy(incoming={}) EmailAbandonedOrderUrls.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
40762 40763 40764 40765 40766 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40762 def to_hash { :checkout => checkout } end |
#to_json ⇒ Object
40754 40755 40756 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40754 def to_json JSON.dump(to_hash) end |