Class: Io::Flow::V0::Models::CheckoutUrls

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 = {}) ⇒ CheckoutUrls

Returns a new instance of CheckoutUrls.



21427
21428
21429
21430
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21427

def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @continue_shopping = (x = opts.delete(:continue_shopping); x.nil? ? nil : HttpClient::Preconditions.assert_class('continue_shopping', x, String))
end

Instance Attribute Details

#continue_shoppingObject (readonly)

Returns the value of attribute continue_shopping.



21425
21426
21427
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21425

def continue_shopping
  @continue_shopping
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



21436
21437
21438
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21436

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

#to_hashObject



21440
21441
21442
21443
21444
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21440

def to_hash
  {
    :continue_shopping => continue_shopping
  }
end

#to_jsonObject



21432
21433
21434
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21432

def to_json
  JSON.dump(to_hash)
end