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.



31019
31020
31021
31022
31023
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31019

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.



31017
31018
31019
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31017

def checkout
  @checkout
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



31029
31030
31031
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31029

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

#to_hashObject



31033
31034
31035
31036
31037
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31033

def to_hash
  {
    :checkout => checkout
  }
end

#to_jsonObject



31025
31026
31027
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31025

def to_json
  JSON.dump(to_hash)
end