Class: Io::Flow::V0::Models::CheckoutUrlsForm

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

Returns a new instance of CheckoutUrlsForm.



22151
22152
22153
22154
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22151

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.



22149
22150
22151
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22149

def continue_shopping
  @continue_shopping
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



22160
22161
22162
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22160

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

#to_hashObject



22164
22165
22166
22167
22168
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22164

def to_hash
  {
    :continue_shopping => continue_shopping
  }
end

#to_jsonObject



22156
22157
22158
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22156

def to_json
  JSON.dump(to_hash)
end