yandex_api_direct 0.1.0 → 0.2.0

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: f0b0a4e423abba86b9b523d0588a7d0c7a5a2085
4
- data.tar.gz: 9f3f2317a2b4107119673e3b04306710a2c5082b
3
+ metadata.gz: b92786d93170bef2545e55d7ea9935f86ccfee04
4
+ data.tar.gz: 6d64f83e3b880414594b9b6c228b2a343959cdb9
5
5
  SHA512:
6
- metadata.gz: 41a7ff3d724c2ea3863639e89a5edb5fc11b66de496f3df0d2e3c58ed1bcf6e01c2eff199d192263fd849e47369dd5ee1791d83ba11687cfc8d87dec6833c18f
7
- data.tar.gz: aa2312d2a85ebd722d264675ace4d23792e04cdaaef7d0fef537fdbaecfca05a3d5b47a54c94400490198de919fa5a2e5213db9ef20211fb3c7b319969f18860
6
+ metadata.gz: 16285cd65a7ccbae6927790cb6370b34fa4d485226f001c977ca6d7c83841b75304bcec7114b7de8a5a3317b002d098249ca75252927ac867cd3bd25293594f0
7
+ data.tar.gz: d7ab179c0569ff7adc05d3a896b87a00d6a4adc8ede2f570ebeb020a14722a6de2325aae1cd15efd5fba38a56cf4291034f82609946cec36593d73a54c6c286d
@@ -12,6 +12,10 @@ module YandexApiDirect
12
12
  include YandexApiDirect::Call
13
13
  include YandexApiDirect::Methods
14
14
 
15
+ def initialize(configuration = nil)
16
+ @configuration = configuration
17
+ end
18
+
15
19
  def configuration
16
20
  @configuration || YandexApiDirect.configuration
17
21
  end
@@ -6,8 +6,10 @@ module YandexApiDirect
6
6
  attr_accessor :access_token
7
7
  attr_accessor :base_url
8
8
 
9
- def initialize
10
- @base_url = YandexApiDirect::Configuration::BASE_URL_DEFAULT
9
+ def initialize(options = {})
10
+ @app_id = options[:app_id]
11
+ @access_token = options[:access_token]
12
+ @base_url = options.fetch(:base_url, YandexApiDirect::Configuration::BASE_URL_DEFAULT)
11
13
  end
12
14
  end
13
15
  end
@@ -1,3 +1,3 @@
1
1
  module YandexApiDirect
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_api_direct
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
  - Sergey Makarov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler