Class: ShopifyAPI::Article

Inherits:
Base
  • Object
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, 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

Class Method Details

.authors(options = {}) ⇒ Object


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

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

.tags(options = {}) ⇒ Object


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

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

Instance Method Details

#commentsObject


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

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