Class: Kounta::Product
- Defined in:
- lib/kounta/product.rb
Instance Method Summary collapse
Methods inherited from Resource
#client, coerce, has_many, has_one, #ignored_properties, #initialize, #new?, #save!, #to_hash
Constructor Details
This class inherits a constructor from Kounta::Resource
Instance Method Details
#resource_path ⇒ Object
24 25 26 |
# File 'lib/kounta/product.rb', line 24 def resource_path {companies: company_id, products: id} end |
#tags_include?(name) ⇒ Boolean
20 21 22 |
# File 'lib/kounta/product.rb', line 20 def (name) .any?{ |s| s.casecmp(name) == 0 } end |