Class: Zoho::Api::Product

Inherits:
Request
  • Object
show all
Defined in:
lib/zoho/api/product.rb

Class Method Summary collapse

Methods inherited from Request

#attributes, #delete, delete, #get, get, #initialize, #post, post, #put, put

Constructor Details

This class inherits a constructor from Zoho::Request

Class Method Details

.allObject



3
4
5
6
# File 'lib/zoho/api/product.rb', line 3

def all
  base_url = Zoho::Api::HOST+"/api/v1/products"
  response = get(base_url)
end

.find(product_id) ⇒ Object



8
9
10
11
# File 'lib/zoho/api/product.rb', line 8

def find product_id
  base_url = Zoho::Api::HOST+"/api/v1/products/#{product_id}"
  response = get(base_url)
end