Class: Shopify::CustomCollection

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

Overview

/admin/custom_collections.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

#bodyObject

Returns the value of attribute body.



96
97
98
# File 'lib/shopify.rb', line 96

def body
  @body
end

#body_htmlObject

Returns the value of attribute body_html.



96
97
98
# File 'lib/shopify.rb', line 96

def body_html
  @body_html
end

#handleObject

Returns the value of attribute handle.



96
97
98
# File 'lib/shopify.rb', line 96

def handle
  @handle
end

#idObject

Returns the value of attribute id.



96
97
98
# File 'lib/shopify.rb', line 96

def id
  @id
end

#published_atObject

Returns the value of attribute published_at.



96
97
98
# File 'lib/shopify.rb', line 96

def published_at
  @published_at
end

#sort_orderObject

Returns the value of attribute sort_order.



96
97
98
# File 'lib/shopify.rb', line 96

def sort_order
  @sort_order
end

#titleObject

Returns the value of attribute title.



96
97
98
# File 'lib/shopify.rb', line 96

def title
  @title
end

#updated_atObject

Returns the value of attribute updated_at.



96
97
98
# File 'lib/shopify.rb', line 96

def updated_at
  @updated_at
end

Instance Method Details

#products(query_params = {}) ⇒ Object



97
98
99
# File 'lib/shopify.rb', line 97

def products(query_params={})
  Shopify.products(query_params.merge(:collection_id => id))
end