Class: ShopifyAPI::Comment

Inherits:
Base show all
Defined in:
lib/shopify_api/resources/comment.rb

Instance Method Summary collapse

Methods inherited from Base

activate_session, #as_json, clear_session, #encode, #headers, init_prefix, init_prefix_explicit, #persisted?

Methods included from Countable

#count

Methods inherited from ActiveResource::Base

delete, headers

Instance Method Details

#approveObject



5
# File 'lib/shopify_api/resources/comment.rb', line 5

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

#not_spamObject



7
# File 'lib/shopify_api/resources/comment.rb', line 7

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

#removeObject



3
# File 'lib/shopify_api/resources/comment.rb', line 3

def remove;   load_attributes_from_response(post(:remove, {}, only_id)); end

#restoreObject



6
# File 'lib/shopify_api/resources/comment.rb', line 6

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

#spamObject



4
# File 'lib/shopify_api/resources/comment.rb', line 4

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