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 +4 -4
- data/lib/yandex_api_direct.rb +4 -0
- data/lib/yandex_api_direct/configuration.rb +4 -2
- data/lib/yandex_api_direct/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b92786d93170bef2545e55d7ea9935f86ccfee04
|
4
|
+
data.tar.gz: 6d64f83e3b880414594b9b6c228b2a343959cdb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16285cd65a7ccbae6927790cb6370b34fa4d485226f001c977ca6d7c83841b75304bcec7114b7de8a5a3317b002d098249ca75252927ac867cd3bd25293594f0
|
7
|
+
data.tar.gz: d7ab179c0569ff7adc05d3a896b87a00d6a4adc8ede2f570ebeb020a14722a6de2325aae1cd15efd5fba38a56cf4291034f82609946cec36593d73a54c6c286d
|
data/lib/yandex_api_direct.rb
CHANGED
@@ -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
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|