Sha256: 8974e394670f16f838caeb03d204e3d0c3dcc27de12ebc75dd416726ce4653f3

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

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

    def only_id
      encode(:only => :id)
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
shopify_api-2.1.0 lib/shopify_api/resources/comment.rb
shopify_api-2.0.0 lib/shopify_api/resources/comment.rb
th_shopify_api-1.2.6.pre lib/shopify_api/resources/comment.rb