class Io::Flow::V0::Models::ShopifyCustomerMetafieldValue
Model to represent details available in a customer metafield.
Attributes
flow_consumer_id[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 67365 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:flow_consumer_id], 'ShopifyCustomerMetafieldValue') @flow_consumer_id = HttpClient::Preconditions.assert_class('flow_consumer_id', opts.delete(:flow_consumer_id), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 67375 def copy(incoming={}) ShopifyCustomerMetafieldValue.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 67379 def to_hash { :flow_consumer_id => flow_consumer_id } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 67371 def to_json JSON.dump(to_hash) end