Sha256: 392cc8244b7c00f9ec4e14ed80c469fdcb86c8fb4b80ebc64d9f7ff31efc57c3
Contents?: true
Size: 612 Bytes
Versions: 9
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true module ShopifyAPI class ResourceFeedback < Base class ExistingFeedbackSaved < StandardError; end include DisablePrefixCheck self.collection_name = 'resource_feedback' conditional_prefix :product, false 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.' def save return super unless persisted? raise ExistingFeedbackSaved, EXISTING_FEEDBACK_SAVED_ERROR_MESSAGE end end end
Version data entries
9 entries across 9 versions & 2 rubygems