billomat 0.1.2 → 0.1.3
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 +4 -4
- data/README.md +6 -0
- data/lib/billomat/models/base.rb +8 -0
- data/lib/billomat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db46fde7c4cb3bab3b961939f96c4a2da2d7fc35
|
|
4
|
+
data.tar.gz: 8dfeefc43b8b2791b968bbc086f4453dae445efe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74e4f66f6005bcb63addad77deb30ee3b8eddb038d7e8d1c7a3e7db0fa8a6ca7d2a89970e1bb7399f5cae08e1361cd23394f39d46bb15976e45c546209013b26
|
|
7
|
+
data.tar.gz: 709dbee48107c76328ddf290fe4723fd44062c8ed76ac24640d485384d53a86abf9a68b6c7ab3a71294863731e9ab621821559e66f6df7d2b508dc3687221bd4
|
data/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Billomat
|
|
2
2
|
[](https://travis-ci.org/hausgold/billomat)
|
|
3
|
+
[](https://badge.fury.io/rb/billomat)
|
|
3
4
|
[](https://codeclimate.com/github/hausgold/billomat/maintainability)
|
|
4
5
|
[](https://codeclimate.com/github/hausgold/billomat/test_coverage)
|
|
5
6
|
|
|
@@ -57,6 +58,11 @@ client.delete
|
|
|
57
58
|
=> true
|
|
58
59
|
```
|
|
59
60
|
|
|
61
|
+
### Documentation
|
|
62
|
+
|
|
63
|
+
The RubyDoc is available [here](http://www.rubydoc.info/gems/billomat/0.1.2).
|
|
64
|
+
|
|
65
|
+
|
|
60
66
|
## Development
|
|
61
67
|
|
|
62
68
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/billomat/models/base.rb
CHANGED
|
@@ -94,6 +94,14 @@ module Billomat
|
|
|
94
94
|
{ self.class.resource_name => @data.to_h }
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
##
|
|
98
|
+
# Returns the object with the right JSON structure
|
|
99
|
+
#
|
|
100
|
+
# @return [Hash] The objects data
|
|
101
|
+
def as_json(options = nil)
|
|
102
|
+
@data.to_h
|
|
103
|
+
end
|
|
104
|
+
|
|
97
105
|
##
|
|
98
106
|
# All values in the @data hash can be accessed like a 'normal' method
|
|
99
107
|
#
|
data/lib/billomat/version.rb
CHANGED