Class: Shirtsio::Product
Overview
Provides specifications, inventory data, and pictures of all products available before printing.
Defined Under Namespace
Class Method Summary collapse
-
.find(id) ⇒ Shirtsio::Product
Get product catalog information for a specific product id.
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.
7 8 9 |
# File 'lib/shirtsio/product.rb', line 7 def self.find(id) new(Shirtsio.get("/products/#{id}/")) end |