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.



30468
30469
30470
30471
30472
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30468

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.



30466
30467
30468
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30466

def checkout
  @checkout
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



30478
30479
30480
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30478

def copy(incoming={})
  EmailAbandonedOrderUrls.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#to_hashObject



30482
30483
30484
30485
30486
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30482

def to_hash
  {
    :checkout => checkout
  }
end

#to_jsonObject



30474
30475
30476
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 30474

def to_json
  JSON.dump(to_hash)
end