Class: ShopifyAPI::Article

Inherits:
Base show all
Includes:
DisablePrefixCheck, Events, Metafields
Defined in:
lib/shopify_api/resources/article.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Metafields

#add_metafield, #metafields

Methods included from Events

#events

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

Class Method Details

.authors(options = {}) ⇒ Object



13
14
15
# File 'lib/shopify_api/resources/article.rb', line 13

def self.authors(options = {})
  get(:authors, options)
end

.tags(options = {}) ⇒ Object



17
18
19
# File 'lib/shopify_api/resources/article.rb', line 17

def self.tags(options={})
  get(:tags, options)
end

Instance Method Details

#commentsObject



9
10
11
# File 'lib/shopify_api/resources/article.rb', line 9

def comments
  Comment.find(:all, :params => { :article_id => id })
end