Class: SpiffyStoresAPI::Article
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- SpiffyStoresAPI::Article
- Includes:
- DisablePrefixCheck, Metafields
- Defined in:
- lib/spiffy_stores_api/resources/article.rb
Class Method Summary collapse
-
.authors(options = {}) ⇒ Object
def comments Comment.find(:all, :params => { :article_id => id }) end.
- .tags(options = {}) ⇒ Object
Methods included from Metafields
Methods inherited from Base
activate_session, #as_json, clear_session, #encode, #headers, init_prefix, init_prefix_explicit, #persisted?
Methods included from Countable
Methods inherited from ActiveResource::Base
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.( = {}) get(:authors, ) end |
.tags(options = {}) ⇒ Object
16 17 18 |
# File 'lib/spiffy_stores_api/resources/article.rb', line 16 def self.(={}) get(:tags, ) end |