class Io::Flow::V0::Models::CheckoutItemContentAttribute
Attributes
key[R]
name[R]
value[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 36009 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:key, :name, :value], 'CheckoutItemContentAttribute') @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String) @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String) @value = HttpClient::Preconditions.assert_class('value', opts.delete(:value), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 36021 def copy(incoming={}) CheckoutItemContentAttribute.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 36025 def to_hash { :key => key, :name => name, :value => value } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 36017 def to_json JSON.dump(to_hash) end