zoho_inventory 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec0ec48a05425f1464d1be7a8f7489cbd09da8e0
4
- data.tar.gz: 1755d0aef434618928a1ac0b91cb469619363352
3
+ metadata.gz: 2ee344df612dcf47b53a73f783eaf44247205592
4
+ data.tar.gz: 0347a47179f25b03712f98c5ebfc572db0426681
5
5
  SHA512:
6
- metadata.gz: eda6e5dfba2631ccbd3a5e60d6cb534ff4802d2e1f9e8d048a4272c7d051026695603936439697ae952cc3584f1e54c4078cbc4b7c3976d8ba3398bc52f91851
7
- data.tar.gz: afcfdf6a8e897c203be2f17683e331391aab94e0cd3ef2f6351d4fa41d5a69c5b41e3b449ce64f77a0f45b124af935f0fa66eee64daf6501060fd2a1cfbd6d88
6
+ metadata.gz: 96a60460a188f4a16187c85ee54f03f0f21b834cbadfe22074df360e1089fd26f0f1e8251d70da8a88b2188ea9941fbb942d82a6cb9276b5d42258076a97f603
7
+ data.tar.gz: 2a2b8c0a6e03de0ff5ff0e3fa0e9cef85252d16283f57865a9b731020f9dcbcf965bbe8596773fe6554e9ad3ee99bc8009b38543598ad6316c75e3b05d655385
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zoho_inventory (0.1.1)
4
+ zoho_inventory (0.1.2)
5
5
  faraday (~> 0.15)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/Virolea/zoho_inventory.svg?branch=master)](https://travis-ci.org/Virolea/zoho_inventory)
2
+
1
3
  ⚠️ This is a work in progress, only CRUD operations are available for Zoho models for now, and models will be added gradually.
2
4
 
3
5
  # ZohoInventory
@@ -15,11 +15,11 @@ require "zoho_inventory/zoho_object"
15
15
 
16
16
  # Models
17
17
  require "zoho_inventory/contact"
18
+ require "zoho_inventory/invoice"
18
19
  require "zoho_inventory/item"
19
20
  require "zoho_inventory/organization"
20
21
  require "zoho_inventory/user"
21
22
 
22
-
23
23
  ## Support
24
24
  require 'zoho_inventory/util'
25
25
 
@@ -0,0 +1,7 @@
1
+ module ZohoInventory
2
+ class Invoice < ZohoObject
3
+ accept_api_methods [:list, :create, :retrieve, :update, :delete]
4
+
5
+ OBJECT_NAME = "invoice".freeze
6
+ end
7
+ end
@@ -5,7 +5,8 @@ module ZohoInventory
5
5
  Item::OBJECT_NAME => Item,
6
6
  Contact::OBJECT_NAME => Contact,
7
7
  Organization::OBJECT_NAME => Organization,
8
- User::OBJECT_NAME => User
8
+ User::OBJECT_NAME => User,
9
+ Invoice::OBJECT_NAME => Invoice
9
10
  }
10
11
  end
11
12
 
@@ -14,7 +15,8 @@ module ZohoInventory
14
15
  Item::OBJECT_NAME => 'item',
15
16
  Contact::OBJECT_NAME => 'contact',
16
17
  Organization::OBJECT_NAME => 'organization',
17
- User::OBJECT_NAME => 'user'
18
+ User::OBJECT_NAME => 'user',
19
+ Invoice::OBJECT_NAME => 'invoice'
18
20
  }
19
21
  end
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module ZohoInventory
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -4,7 +4,6 @@ module ZohoInventory
4
4
  # It implements methods common to all resources available from Zoho
5
5
 
6
6
  extend Request
7
- attr_reader :values
8
7
 
9
8
  @list = false
10
9
  @create = false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoho_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Rolea
@@ -101,6 +101,7 @@ files:
101
101
  - lib/zoho_inventory.rb
102
102
  - lib/zoho_inventory/client.rb
103
103
  - lib/zoho_inventory/contact.rb
104
+ - lib/zoho_inventory/invoice.rb
104
105
  - lib/zoho_inventory/item.rb
105
106
  - lib/zoho_inventory/organization.rb
106
107
  - lib/zoho_inventory/request.rb