Class: Io::Flow::V0::Models::EmailAbandonedOrderUrls

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checkoutObject (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_hashObject



40762
40763
40764
40765
40766
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40762

def to_hash
  {
    :checkout => checkout
  }
end

#to_jsonObject



40754
40755
40756
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 40754

def to_json
  JSON.dump(to_hash)
end