Sha256: ae29bd54751f50a5566fdf145ea6474bea810c956eaed412f20a93fa5ea32c42

Contents?: true

Size: 524 Bytes

Versions: 8

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true
module ShopifyAPI
  class Comment < Base
    def remove
      load_attributes_from_response(post(:remove, {}, only_id))
    end

    def spam
      load_attributes_from_response(post(:spam, {}, only_id))
    end

    def approve
      load_attributes_from_response(post(:approve, {}, only_id))
    end

    def restore
      load_attributes_from_response(post(:restore, {}, only_id))
    end

    def not_spam
      load_attributes_from_response(post(:not_spam, {}, only_id))
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ruby_shopify_api-1.2.0 lib/ruby_shopify_api/resources/comment.rb
ruby_shopify_api-1.1.0 lib/shopify_api/resources/comment.rb
ruby_shopify_api-1.0.0 lib/shopify_api/resources/comment.rb
shopify_api-9.5.1 lib/shopify_api/resources/comment.rb
shopify_api-9.5 lib/shopify_api/resources/comment.rb
shopify_api-9.4.1 lib/shopify_api/resources/comment.rb
shopify_api-9.4.0 lib/shopify_api/resources/comment.rb
shopify_api-9.3.0 lib/shopify_api/resources/comment.rb