approveapi 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: a9b729d489e997bf1392127e78e33f73f7071b7ca14b3973c9ba1081ac285ce0
4
- data.tar.gz: 2156b20f92329658f76eb6ef9ca0102666c54ef626fc331444d5552882428bda
3
+ metadata.gz: 8715845df42328ba399857da0f31f008f22d135908ce7a3307afeb6befffa99c
4
+ data.tar.gz: 4b3f1ecbfaf9776d7844ab80a949b3da4e337d57fdf3dd0e2de56d202c4bce9d
5
5
  SHA512:
6
- metadata.gz: bf92bea312aaa4a5c54bba18aa5862981186b30db5d387ee182ab07a75dea2c4e9ab4dc38d0c2899ad435cbee15aa3c5379aae42863abb04fd6cdb6598dfd2c1
7
- data.tar.gz: 9ceb25e454c6d32fcb09ae9b297be2684592d76a92948def666682880c81c4e8f838508ef3f2ed6445a22fb3ebc47866ade6b9f226b9e225fd4354f1f617d02e
6
+ metadata.gz: 30c1adb3da0a232e7e6bbafdbb38b9d2a7ecf20da12a867bc66c3d3712600ca828f1915c537cbe36dd1d4da71eefa2e21da42719d17db4eeba2e56eef08221dc
7
+ data.tar.gz: c1978e106de7493565085e79e76bd823c34328f8d2496f203a09ff625b3608b3dcadb602fce9c1052e0456d0659245bade05bf7fdd37baeb9e3ed0fd7bd7a343
data/lib/approveapi.rb CHANGED
@@ -26,20 +26,18 @@ require 'approveapi_swagger/models/prompt_status'
26
26
  require 'approveapi_swagger/api/approve_api'
27
27
 
28
28
  module ApproveAPI
29
- include ApproveAPISwagger
30
- class << self
31
- # Customize default settings for the SDK using block.
32
- # ApproveAPISwagger.configure do |config|
33
- # config.username = "xxx"
34
- # config.password = "xxx"
35
- # end
36
- # If no block given, return the default Configuration object.
37
- def configure
38
- if block_given?
39
- yield(Configuration.default)
40
- else
41
- Configuration.default
42
- end
43
- end
44
- end
29
+ include ApproveAPISwagger
30
+ class << self
31
+ def create_client(secret_api_key)
32
+ self.configure |config| {
33
+ config.username = secret_api_key
34
+ }
35
+ client = self::ApproveAPI.new
36
+ if block_given?
37
+ yield(client)
38
+ else
39
+ client
40
+ end
41
+ end
42
+ end
45
43
  end
@@ -1,3 +1,3 @@
1
1
  module ApproveAPI
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: approveapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ApproveAPI