Class: ShopifyAPI::Comment
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- ShopifyAPI::Comment
- Defined in:
- lib/shopify_api/resources/comment.rb
Instance Method Summary collapse
- #approve ⇒ Object
- #not_spam ⇒ Object
- #only_id ⇒ Object
- #remove ⇒ Object
- #restore ⇒ Object
- #spam ⇒ Object
Methods included from Countable
Methods inherited from ActiveResource::Base
Instance Method Details
#approve ⇒ Object
5 |
# File 'lib/shopify_api/resources/comment.rb', line 5 def approve; load_attributes_from_response(post(:approve, {}, only_id)); end |
#not_spam ⇒ Object
7 |
# File 'lib/shopify_api/resources/comment.rb', line 7 def not_spam; load_attributes_from_response(post(:not_spam, {}, only_id)); end |
#only_id ⇒ Object
9 10 11 |
# File 'lib/shopify_api/resources/comment.rb', line 9 def only_id encode(:only => :id) end |
#remove ⇒ Object
3 |
# File 'lib/shopify_api/resources/comment.rb', line 3 def remove; load_attributes_from_response(post(:remove, {}, only_id)); end |
#restore ⇒ Object
6 |
# File 'lib/shopify_api/resources/comment.rb', line 6 def restore; load_attributes_from_response(post(:restore, {}, only_id)); end |
#spam ⇒ Object
4 |
# File 'lib/shopify_api/resources/comment.rb', line 4 def spam; load_attributes_from_response(post(:spam, {}, only_id)); end |