Class: ShopifyAPI::Comment
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- ShopifyAPI::Comment
show all
- Defined in:
- lib/shopify_api/resources/comment.rb
Instance Method Summary
collapse
Methods inherited from Base
activate_session, api_version, api_version=, #as_json, clear_session, early_july_pagination?, #encode, headers, init_prefix, init_prefix_explicit, #persisted?, prefix, prefix=, prefix_source, resource_prefix, resource_prefix=, version_validation!
Methods included from Countable
#count
Instance Method Details
#approve ⇒ Object
12
13
14
|
# File 'lib/shopify_api/resources/comment.rb', line 12
def approve
load_attributes_from_response(post(:approve, {}, only_id))
end
|
#not_spam ⇒ Object
20
21
22
|
# File 'lib/shopify_api/resources/comment.rb', line 20
def not_spam
load_attributes_from_response(post(:not_spam, {}, only_id))
end
|
#remove ⇒ Object
4
5
6
|
# File 'lib/shopify_api/resources/comment.rb', line 4
def remove
load_attributes_from_response(post(:remove, {}, only_id))
end
|
#restore ⇒ Object
16
17
18
|
# File 'lib/shopify_api/resources/comment.rb', line 16
def restore
load_attributes_from_response(post(:restore, {}, only_id))
end
|
#spam ⇒ Object
8
9
10
|
# File 'lib/shopify_api/resources/comment.rb', line 8
def spam
load_attributes_from_response(post(:spam, {}, only_id))
end
|