athena_health 1.0.10 → 1.0.11

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: 952aafe6923286b7a5a03b134f9aa79e1809c717
4
- data.tar.gz: 68f9234da1b32c07f9acd44cc3ff917c85127200
3
+ metadata.gz: 12ad7bbe1c13fdf8dc0231f9e9f916991a652f05
4
+ data.tar.gz: 7ce7fd1a22ecbcc5559ea4d83c00273068baa4e8
5
5
  SHA512:
6
- metadata.gz: e04fadb8995069dd8dac99c4203525b1dd0582c7180923bd943d5077a678e3b0ae21c2e5f230d5d319a541736069ece14bd261d1e2656799e2c5bd48bb6cbc2c
7
- data.tar.gz: 0450fbe6ff6a5e7633b27aded2e75b2e4a51c98fa31860d188cdb7658d3819498d8f4365ae129752ed2f3bb732b1b6fc2d2097db484e6fa5ef575ef9d84100d1
6
+ metadata.gz: de16d4331ed9091b0cf1df92fb35517b23db057ae8972d7f8bcd940c135d5f6b9d7ef45676b6369f8e15c00adb4a009ce0f5f354904a124e3f0a3b374a848e50
7
+ data.tar.gz: f3dcf4364c8127766efedf20c693434583e4b9ffc94acccc4d10541c7a60eb6256cafed4d2c151c883806a43b5171bc878c2d17ef4e9229e97068f180c9f2d49
@@ -1,7 +1,12 @@
1
1
  module AthenaHealth
2
2
  class Client
3
- def initialize(version:, key:, secret:)
4
- @api = AthenaHealth::Connection.new(version: version, key: key, secret: secret)
3
+ def initialize(version:, key:, secret:, token: nil)
4
+ @api = AthenaHealth::Connection.new(
5
+ version: version,
6
+ key: key,
7
+ secret: secret,
8
+ token: token,
9
+ )
5
10
  end
6
11
 
7
12
  include Endpoints::Practices
@@ -5,10 +5,11 @@ module AthenaHealth
5
5
  BASE_URL = 'https://api.athenahealth.com'.freeze
6
6
  AUTH_PATH = { 'v1' => 'oauth', 'preview1' => 'oauthpreview', 'openpreview1' => 'oauthopenpreview' }
7
7
 
8
- def initialize(version:, key:, secret:)
8
+ def initialize(version:, key:, secret:, token: nil)
9
9
  @version = version
10
10
  @key = key
11
11
  @secret = secret
12
+ @token = token
12
13
  end
13
14
 
14
15
  def authenticate
@@ -1,3 +1,3 @@
1
1
  module AthenaHealth
2
- VERSION = '1.0.10'.freeze
2
+ VERSION = '1.0.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: athena_health
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Urbański
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-10 00:00:00.000000000 Z
11
+ date: 2016-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus