Class: Io::Flow::V0::Models::ShopifyLocationFlowCenterMappingForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ShopifyLocationFlowCenterMappingForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#flow_center_key ⇒ Object
readonly
Returns the value of attribute flow_center_key.
-
#shopify_location_id ⇒ Object
readonly
Returns the value of attribute shopify_location_id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ShopifyLocationFlowCenterMappingForm
constructor
A new instance of ShopifyLocationFlowCenterMappingForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ShopifyLocationFlowCenterMappingForm
Returns a new instance of ShopifyLocationFlowCenterMappingForm.
51942 51943 51944 51945 51946 51947 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51942 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:shopify_location_id, :flow_center_key], 'ShopifyLocationFlowCenterMappingForm') @shopify_location_id = HttpClient::Preconditions.assert_class('shopify_location_id', opts.delete(:shopify_location_id), Integer) @flow_center_key = HttpClient::Preconditions.assert_class('flow_center_key', opts.delete(:flow_center_key), String) end |
Instance Attribute Details
#flow_center_key ⇒ Object (readonly)
Returns the value of attribute flow_center_key.
51940 51941 51942 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51940 def flow_center_key @flow_center_key end |
#shopify_location_id ⇒ Object (readonly)
Returns the value of attribute shopify_location_id.
51940 51941 51942 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51940 def shopify_location_id @shopify_location_id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
51953 51954 51955 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51953 def copy(incoming={}) ShopifyLocationFlowCenterMappingForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
51957 51958 51959 51960 51961 51962 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51957 def to_hash { :shopify_location_id => shopify_location_id, :flow_center_key => flow_center_key } end |
#to_json ⇒ Object
51949 51950 51951 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 51949 def to_json JSON.dump(to_hash) end |