ecal_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ecal_client/api.rb +8 -0
- data/lib/ecal_client/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: d7be1ea0018c606e3e700bed0970b0fb635058e5
|
4
|
+
data.tar.gz: ddadbc3d56c281e745582f9d4af844ed94e27284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ec2ac98a69df4c84ea59fade16567d4c1fd2a34c56919c6d824156a9595a5e5f1ce4b81ccc8a4f935b40286dc3b359b4d74b8fe6d05145cd7e82cebbe37e08f
|
7
|
+
data.tar.gz: c53116788532471f7cdade11c8e02fa382172a7535cff72ad8830b9065625f4e3b620a096b040894eadfe7aac8cef82a5f5a71591a55a6db099c45121719206a
|
data/lib/ecal_client/api.rb
CHANGED
@@ -9,6 +9,14 @@ module EcalClient
|
|
9
9
|
SUBSCRIPTION_WIDGET = "/subscription-widget/".freeze
|
10
10
|
SUBSCRIBER = "/subscriber/".freeze
|
11
11
|
|
12
|
+
def initialize(options = {})
|
13
|
+
key = options.delete(:key)
|
14
|
+
secret = options.delete(:secret)
|
15
|
+
EcalClient.configuration.key = key if key
|
16
|
+
EcalClient.configuration.secret = secret if secret
|
17
|
+
EcalClient.configuration.options.merge!(options)
|
18
|
+
end
|
19
|
+
|
12
20
|
def organisation
|
13
21
|
@organisation ||= Rest.new(endpoint_for(ORGANISATION), [:get, :post, :put])
|
14
22
|
end
|
data/lib/ecal_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecal_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Faizal Zakaria
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|