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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46ed797579c37a183f62382779f2872a04db5e36
4
- data.tar.gz: 2f48fd804b7b06cb2805bbb62125b251392bb080
3
+ metadata.gz: db46fde7c4cb3bab3b961939f96c4a2da2d7fc35
4
+ data.tar.gz: 8dfeefc43b8b2791b968bbc086f4453dae445efe
5
5
  SHA512:
6
- metadata.gz: 3ba4b8f7405ea77675a2559014199c251c008c5f6ab6d96661dfd02f4eedc35536d7c88430017a7db53c50238045b99dc0f62a58c459bb43f430c4923a20abf9
7
- data.tar.gz: e50580b56bc197307da0168607c82a0e6f3386d5208bcc03e15ed97ccd4cdb6c8f0707ae0dd36004b6cfd104f5bbe62d76c8d3a0d0a379ec36731411d6b38582
6
+ metadata.gz: 74e4f66f6005bcb63addad77deb30ee3b8eddb038d7e8d1c7a3e7db0fa8a6ca7d2a89970e1bb7399f5cae08e1361cd23394f39d46bb15976e45c546209013b26
7
+ data.tar.gz: 709dbee48107c76328ddf290fe4723fd44062c8ed76ac24640d485384d53a86abf9a68b6c7ab3a71294863731e9ab621821559e66f6df7d2b508dc3687221bd4
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Billomat
2
2
  [![Build Status](https://travis-ci.org/hausgold/billomat.svg?branch=master)](https://travis-ci.org/hausgold/billomat)
3
+ [![Gem Version](https://badge.fury.io/rb/billomat.svg)](https://badge.fury.io/rb/billomat)
3
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/49baf848f42a2e5b95db/maintainability)](https://codeclimate.com/github/hausgold/billomat/maintainability)
4
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/49baf848f42a2e5b95db/test_coverage)](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.
@@ -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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Billomat
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billomat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Vogt