Class: SpiffyStoresAPI::Article

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

Class Method Summary collapse

Methods included from Metafields

#add_metafield, #metafields

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

def comments

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


12
13
14
# File 'lib/spiffy_stores_api/resources/article.rb', line 12

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

.tags(options = {}) ⇒ Object



16
17
18
# File 'lib/spiffy_stores_api/resources/article.rb', line 16

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