billogram 0.3.5 → 0.3.6

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: 965138ccd131dce9e5a9f15df46be337f475f56a
4
- data.tar.gz: 42d9b19c62e470673ae673f42bc3f8ae88a11bba
3
+ metadata.gz: d19c8617149c997055c24fe28e8cf5246e7ef935
4
+ data.tar.gz: 6a6eb3b078172b0a9601ab22d5fd969ce2d105bd
5
5
  SHA512:
6
- metadata.gz: 9d20a423ff9c92aec634633e6d150e370664cbea22546ca434bbca311311f7125270ff07dae106d14f01a5a3be1f5795970e03c7fc6719b0192e04252145d547
7
- data.tar.gz: 8cb71574eec60220cdf1fcba61111a1c6e6f9cdb4840a6cf1bb5a2286a511d57edb4d5f120b71228767dee3e38b69541e2ed3050f7c238db0cd6f2cb37bb2b75
6
+ metadata.gz: 5cfa00c57beb5c319928ef035d57b0b74a97d240727241108bb1d8d4b39d569ce26790b526bf987ccc44b1105ec7c310d6317132afb8a075b3ba51757aac3fd0
7
+ data.tar.gz: 913bd36349fc91fc4578a239af5be0ef1ef5ca42ba0b2af8579c32e3c60b16ff290b716a1526335959642b26d7da0d48bd440c380c9a873a54ac0ef71c592ef3
data/README.md CHANGED
@@ -22,20 +22,20 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ First you need to configure the client
26
26
 
27
- ## Development
28
-
29
- 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.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/billogram.
27
+ ```ruby
28
+ Billogram.configure do |config|
29
+ config.username = '6012-qJzHT0qU'
30
+ config.password = '55105e0460d5844274dc8f7070fc0a41'
31
+ config.base_uri = "https://sandbox.billogram.com/api/v2/"
32
+ end
36
33
 
37
34
 
38
- ## License
35
+ Billogram::Customer.search({filter_type: :field, filter_field: :customer_no, filter_value: 1})
36
+ ````
39
37
 
40
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
38
+ List of available methods:
39
+ ```ruby
41
40
 
41
+ ```
@@ -11,7 +11,7 @@ module Billogram
11
11
 
12
12
  def endpoint(value = nil)
13
13
  @endpoint = value if value
14
- @endpoint || name.demodulize.underscore.pluralize
14
+ @endpoint || name.demodulize.underscore
15
15
  end
16
16
 
17
17
  def search(options = {})
@@ -1,7 +1,5 @@
1
1
  module Billogram
2
2
  class Customer < Resource
3
- endpoint 'customer'
4
-
5
3
  attr_accessor :customer_no, :name, :notes, :org_no, :vat_no, :created_at, :updated_at, :company_type
6
4
 
7
5
  relation :address, :one
@@ -1,3 +1,3 @@
1
1
  module Billogram
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billogram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Birman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler