Class: Shopify::Article

Inherits:
ShopifyModel show all
Defined in:
lib/shopify.rb

Overview

/admin/blogs//articles.xml

Instance Attribute Summary collapse

Attributes inherited from ShopifyModel

#shop

Instance Method Summary collapse

Methods inherited from ShopifyModel

children_of, #initialize, #inspect, instantiate, is_child?, top_level

Constructor Details

This class inherits a constructor from Shopify::ShopifyModel

Instance Attribute Details

#authorObject

Returns the value of attribute author.



65
66
67
# File 'lib/shopify.rb', line 65

def author
  @author
end

#blog_idObject

Returns the value of attribute blog_id.



65
66
67
# File 'lib/shopify.rb', line 65

def blog_id
  @blog_id
end

#bodyObject

Returns the value of attribute body.



65
66
67
# File 'lib/shopify.rb', line 65

def body
  @body
end

#body_htmlObject

Returns the value of attribute body_html.



65
66
67
# File 'lib/shopify.rb', line 65

def body_html
  @body_html
end

#created_atObject

Returns the value of attribute created_at.



65
66
67
# File 'lib/shopify.rb', line 65

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



65
66
67
# File 'lib/shopify.rb', line 65

def id
  @id
end

#published_atObject

Returns the value of attribute published_at.



65
66
67
# File 'lib/shopify.rb', line 65

def published_at
  @published_at
end

#titleObject

Returns the value of attribute title.



65
66
67
# File 'lib/shopify.rb', line 65

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at.



65
66
67
# File 'lib/shopify.rb', line 65

def updated_at
  @updated_at
end

Instance Method Details

#comments(query_params = {}) ⇒ Object



66
67
68
# File 'lib/shopify.rb', line 66

def comments(query_params={})
  Shopify.comments(query_params.merge(:article_id => id, :blog_id => blog_id))
end