realtime-ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/realtime.rb +7 -2
- data/lib/realtime/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: 34c40b7ef36db103d03126dc02b341bd78582f3d
|
4
|
+
data.tar.gz: c5429052770c5ff01fa9be865ed7ec8440f2809d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2465455e7d77fce17adb3f92ebc16144415caeb95767833cbd2fa3d8c6904135426a08b556f94f61c5b4e975a497334aebbadf89018f63e51dfea4b95c050af7
|
7
|
+
data.tar.gz: 1cd34272b8c98f5eb129db82485e9e20b4b9cbee8383863ef1a86b99f5c0112d2233311254d023bd1686863f792b50ae954c7343137ce56122638980669178fb
|
data/lib/realtime.rb
CHANGED
@@ -24,7 +24,12 @@ module Realtime
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
def self.new(
|
28
|
-
|
27
|
+
def self.new(args = {})
|
28
|
+
raise ArgumentError if args[:url].nil?
|
29
|
+
raise ArgumentError if args[:server_token].nil?
|
30
|
+
raise ArgumentError if args[:email].nil?
|
31
|
+
raise ArgumentError if args[:password].nil?
|
32
|
+
|
33
|
+
Realtime::Client.new(args[:url], args[:server_token], args[:email], args[:password])
|
29
34
|
end
|
30
35
|
end
|
data/lib/realtime/version.rb
CHANGED