billomat 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33bd513552938f033a44cf0309bebfeb794f22d9
4
- data.tar.gz: 5a503ad79b891559bdd417ea02e956f53fb5795a
3
+ metadata.gz: a9927c08a163741acfca0254cf29d44d4f33ed33
4
+ data.tar.gz: 9b0d59d29a27058d007c5acb47b26f7871f70abc
5
5
  SHA512:
6
- metadata.gz: c5d1f9f84e01b162360a92d479ce6f6974cb51831975f240be7c14ed5a1ef7e0f0f176955bdd048a50f7e07f94522dc99a73b72bfe608cb4f05fee2b0b51c63a
7
- data.tar.gz: 1aa0161801c5b0e7bd1efd1292aa95223d30294e108a2510095058f22d91fa1a5cc54595c7f2ec3f0cfe0545dcca0b37e2271293169083bb099c9d0f3562d390
6
+ metadata.gz: d7d52189de2293ad19315636835f683501669328fe00c41b6feb07718b48114a3a4671259808cbc8a38dcd26616242eaa2684dae9d9743fcb3a84a591fe59f28
7
+ data.tar.gz: 2b9184c6087ccb9e81eee312c86a37a2ccc119e583f4dcaa91b39045d70b29e228147e3c0aa37331abd5aa699f294c9ee3925a1698219a94383d1231e985a6b8
data/README.md CHANGED
@@ -45,7 +45,12 @@ end
45
45
 
46
46
  ### Basic usage
47
47
 
48
- Currently there is basic support for the models `Invoice`, `Client`, `InvoicePayment`, `InvoiceItem`
48
+ Currently there is basic support for the models:
49
+ * `Invoice`
50
+ * `Client`
51
+ * `InvoicePayment`
52
+ * `InvoiceItem`
53
+ * `Contact`
49
54
 
50
55
  ```ruby
51
56
  Billomat::Models::Invoice.where(invoice_number: 'RE1234')
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Billomat
4
+ module Models
5
+ ##
6
+ # Representation of the client resource
7
+ class Contact < Base
8
+ # @return [String] The resource's base path
9
+ def self.base_path
10
+ '/contacts'
11
+ end
12
+
13
+ # @return [String] The resource's name
14
+ def self.resource_name
15
+ 'contact'
16
+ end
17
+ end
18
+ end
19
+ end
@@ -5,6 +5,7 @@ require 'billomat/models/client'
5
5
  require 'billomat/models/invoice'
6
6
  require 'billomat/models/invoice_item'
7
7
  require 'billomat/models/invoice_payment'
8
+ require 'billomat/models/contact'
8
9
 
9
10
  module Billomat
10
11
  ##
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Billomat
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billomat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Vogt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-09 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -132,6 +132,7 @@ files:
132
132
  - lib/billomat/models.rb
133
133
  - lib/billomat/models/base.rb
134
134
  - lib/billomat/models/client.rb
135
+ - lib/billomat/models/contact.rb
135
136
  - lib/billomat/models/invoice.rb
136
137
  - lib/billomat/models/invoice_item.rb
137
138
  - lib/billomat/models/invoice_payment.rb