availity_client 0.1.0 → 0.2.0

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: c821ea05b606dd8da7d448abab27585d6a1e2b30
4
- data.tar.gz: 628e4749ea7b7f4b93355f1c2b3cbf6372f62068
3
+ metadata.gz: c80a0d2c99cb9bfea6b8ab9954232febefbf352f
4
+ data.tar.gz: 4a8ce60b5cfc0bbb3129cd9b524aec6e6b8e0c14
5
5
  SHA512:
6
- metadata.gz: cfcba6c7fa8d455ddb5a3c2a1982199c6d221d38b30b99139c47b6f044afad7662448a9b7ccc32696663f8e844eb266de40aba98980002a327fe263ae97af9fd
7
- data.tar.gz: 1d131a94de5b666d2774285c8b41c98f21f99c5f060f87ccb8ad0afc2dfc5e48b63a9e7121ec8bdd40ec53ac66421cb6b9c447830fcfbbf92f5399928affd5f5
6
+ metadata.gz: 296d56f188a7343128ba046f5184118eb58aa479c0f952237c12fc2bbd2d8001e1a490f5287027d3bfbe9730e32c5e57095d7c3aa1cca1c623369bc7d68bda57
7
+ data.tar.gz: 9989ec0111ca8ca4cd61f6b889760024e4ef87fdc5615745cf3870d9e0fb51b042d05842e096d639d58b9eee11a9975275f24d7b5d8a105c58a6a448fbbd85ba
@@ -1,4 +1,5 @@
1
1
  require 'availity_client/coverage'
2
+ require 'availity_client/configuration'
2
3
  require 'faraday'
3
4
  require 'json'
4
5
  require 'uri'
@@ -52,7 +53,7 @@ module AvailityClient
52
53
  end
53
54
 
54
55
  if params.any?
55
- params.first.each { |key, value| req.params[key.to_s] = value }
56
+ params.each { |key, value| req.params[key.to_s] = value }
56
57
  end
57
58
  end
58
59
 
@@ -2,9 +2,12 @@ module AvailityClient
2
2
  class Coverage
3
3
  class << self
4
4
  def get(* args)
5
- id = args.shift.to_s if args.first.kind_of?(Integer)
6
- url = "#{AvailityClient.base_url}coverages#{"/" + id if id}"
5
+ if args.first.kind_of?(Integer)
6
+ id = args.shift.to_s
7
+ args = args.first
8
+ end
7
9
 
10
+ url = "#{AvailityClient.base_url}coverages#{"/" + id if id}"
8
11
  AvailityClient.issue_request('get', url, args)
9
12
  end
10
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: availity_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Lee