Class: ShopifyAPI::ResourceFeedback
- Includes:
- DisablePrefixCheck
- Defined in:
- lib/shopify_api/resources/resource_feedback.rb
Defined Under Namespace
Classes: ExistingFeedbackSaved
Constant Summary collapse
- EXISTING_FEEDBACK_SAVED_ERROR_MESSAGE =
'WARNING: Attempted call to ShopifyAPI::ResourceFeedback#save' \ 'after it was already persisted. Updating an existing ShopifyAPI::ResourceFeedback is not supported.'
Instance Method Summary collapse
Methods inherited from Base
activate_session, api_version, api_version=, #as_json, clear_session, early_july_pagination?, #encode, headers, init_prefix, init_prefix_explicit, #persisted?, prefix, prefix=, prefix_source, resource_prefix, resource_prefix=, version_validation!
Methods included from Countable
Instance Method Details
#save ⇒ Object
14 15 16 17 |
# File 'lib/shopify_api/resources/resource_feedback.rb', line 14 def save return super unless persisted? raise ExistingFeedbackSaved, EXISTING_FEEDBACK_SAVED_ERROR_MESSAGE end |