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 +4 -4
- data/README.md +6 -1
- data/lib/billomat/models/contact.rb +19 -0
- data/lib/billomat/models.rb +1 -0
- data/lib/billomat/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9927c08a163741acfca0254cf29d44d4f33ed33
|
4
|
+
data.tar.gz: 9b0d59d29a27058d007c5acb47b26f7871f70abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
data/lib/billomat/models.rb
CHANGED
data/lib/billomat/version.rb
CHANGED
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
|
+
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-
|
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
|