comment.rb 458 B

123456789
  1. module ShopifyAPI
  2. class Comment < Base
  3. def remove; load_attributes_from_response(post(:remove, {}, only_id)); end
  4. def spam; load_attributes_from_response(post(:spam, {}, only_id)); end
  5. def approve; load_attributes_from_response(post(:approve, {}, only_id)); end
  6. def restore; load_attributes_from_response(post(:restore, {}, only_id)); end
  7. def not_spam; load_attributes_from_response(post(:not_spam, {}, only_id)); end
  8. end
  9. end