Class: Io::Flow::V0::Models::ShopifyCustomerMetafieldValue
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ShopifyCustomerMetafieldValue
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Overview
Model to represent details available in a customer metafield.
Instance Attribute Summary collapse
-
#flow_consumer_id ⇒ Object
readonly
Returns the value of attribute flow_consumer_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ShopifyCustomerMetafieldValue
constructor
A new instance of ShopifyCustomerMetafieldValue.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ShopifyCustomerMetafieldValue
Returns a new instance of ShopifyCustomerMetafieldValue.
67365 67366 67367 67368 67369 |
# 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 |
Instance Attribute Details
#flow_consumer_id ⇒ Object (readonly)
Returns the value of attribute flow_consumer_id.
67363 67364 67365 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 67363 def flow_consumer_id @flow_consumer_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
67375 67376 67377 |
# 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 ⇒ Object
67379 67380 67381 67382 67383 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 67379 def to_hash { :flow_consumer_id => flow_consumer_id } end |
#to_json ⇒ Object
67371 67372 67373 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 67371 def to_json JSON.dump(to_hash) end |