Class: ZohoBooks::Item
- Inherits:
-
Object
- Object
- ZohoBooks::Item
- Defined in:
- lib/zoho_books/item.rb
Class Method Summary collapse
- .create(body, opts = {}) ⇒ Object
- .delete(id, opts = {}) ⇒ Object
- .list(opts = {}) ⇒ Object
- .update(id, body, opts = {}) ⇒ Object
Class Method Details
.create(body, opts = {}) ⇒ Object
13 14 15 |
# File 'lib/zoho_books/item.rb', line 13 def self.create(body, opts = {}) ZohoBooks::Connection.post("#{BASE_URL}/items?organization_id=#{ZohoBooks.config.organization_id}", body.to_json) end |
.delete(id, opts = {}) ⇒ Object
21 22 23 |
# File 'lib/zoho_books/item.rb', line 21 def self.delete(id, opts = {}) ZohoBooks::Connection.delete("#{BASE_URL}/items/#{id}?organization_id=#{ZohoBooks.config.organization_id}") end |