Class: Shirtsio::Product

Inherits:
Endpoint show all
Defined in:
lib/shirtsio/product.rb

Overview

Provides specifications, inventory data, and pictures of all products available before printing.

Defined Under Namespace

Classes: Category, Simple

Class Method Summary collapse

Methods inherited from Endpoint

#initialize, #method_missing, #respond_to?

Constructor Details

This class inherits a constructor from Shirtsio::Endpoint

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Shirtsio::Endpoint

Class Method Details

.find(id) ⇒ Shirtsio::Product

Get product catalog information for a specific product id.

Returns:



7
8
9
# File 'lib/shirtsio/product.rb', line 7

def self.find(id)
  new(Shirtsio.get("/products/#{id}/"))
end