Class: Conexa::Product
- Inherits:
-
Model
- Object
- ConexaObject
- Model
- Conexa::Product
- Defined in:
- lib/conexa/resources/product.rb
Overview
Product resource (read-only for listing/retrieving)
The new API v2 also supports POST /product and DELETE /product/:id.
Constant Summary
Constants inherited from ConexaObject
Instance Attribute Summary collapse
-
#is_active ⇒ Boolean
readonly
Whether the product is active.
-
#name ⇒ String
readonly
Product name.
-
#product_id ⇒ Integer
readonly
Product ID (also accessible as #id).
Attributes inherited from ConexaObject
Method Summary
Methods inherited from Model
all, #class_name, class_name, #create, create, #destroy, destroy, extract_page_size_or_params, #fetch, find_by, find_by_id, #id, #primary_key, primary_key_attribute, #primary_key_name, #save, #set_primary_key, show_url, underscored_class_name, url
Methods included from Deprecatable
Methods inherited from ConexaObject
#==, #[]=, convert, #empty?, #initialize, #respond_to_missing?, #to_hash, #unsaved_attributes
Constructor Details
This class inherits a constructor from Conexa::ConexaObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Conexa::ConexaObject
Instance Attribute Details
#is_active ⇒ Boolean (readonly)
Returns Whether the product is active.
28 29 30 |
# File 'lib/conexa/resources/product.rb', line 28 class Product < Model primary_key_attribute :product_id end |