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.



37529
37530
37531
37532
37533
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 37529

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.



37527
37528
37529
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 37527

def checkout
  @checkout
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



37539
37540
37541
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 37539

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

#to_hashObject



37543
37544
37545
37546
37547
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 37543

def to_hash
  {
    :checkout => checkout
  }
end

#to_jsonObject



37535
37536
37537
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 37535

def to_json
  JSON.dump(to_hash)
end