API42 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/API42/client.rb +2 -2
- data/lib/API42/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1da408f0676643e4aea43bcdf894f3e217b2531
|
4
|
+
data.tar.gz: aa3ca180b7b7de1bb1e8f58e074ecbdd3cc7aa98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f20054681efe26be8107f9fad5d7a79e9bbad91bd6f1d702212ba844e0a983b711a3ddb2ae3f530e34a54d3f231f7d5812dbe273b811594a6fd96d46c391af6b
|
7
|
+
data.tar.gz: c43e327eca17ce2e09c42fd7131033ee74d920b983eecc49542202ab54a7fd7aaefd3cc10edce90e17e559d85e4e4b413f308b59e89833d85c5030d6de1d5533
|
data/lib/API42/client.rb
CHANGED
@@ -5,9 +5,9 @@ module API42
|
|
5
5
|
class Client
|
6
6
|
attr_accessor :token
|
7
7
|
|
8
|
-
def initialize token
|
8
|
+
def initialize token=nil
|
9
9
|
@host = RestClient::Resource.new('https://api.intrav2.42.fr')
|
10
|
-
@token = token
|
10
|
+
@token = token || ENV.fetch('API_42_KEY')
|
11
11
|
end
|
12
12
|
|
13
13
|
def cursus(options = {})
|
data/lib/API42/version.rb
CHANGED