class Io::Flow::V0::Models::CheckoutAttributeForm
Attributes
attribute_keys[R]
experience_key[R]
key[R]
name[R]
position[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 35939 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:key, :experience_key, :attribute_keys], 'CheckoutAttributeForm') @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String) @name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String)) @experience_key = HttpClient::Preconditions.assert_class('experience_key', opts.delete(:experience_key), String) @attribute_keys = HttpClient::Preconditions.assert_class('attribute_keys', opts.delete(:attribute_keys), Array).map { |v| HttpClient::Preconditions.assert_class('attribute_keys', v, String) } @position = (x = opts.delete(:position); x.nil? ? nil : HttpClient::Preconditions.assert_class('position', x, Integer)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 35953 def copy(incoming={}) CheckoutAttributeForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 35957 def to_hash { :key => key, :name => name, :experience_key => experience_key, :attribute_keys => attribute_keys, :position => position } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 35949 def to_json JSON.dump(to_hash) end