zquickblox 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/zquickblox/dialog/get_dialogs_request.rb +3 -2
- data/lib/zquickblox/dialog.rb +1 -1
- data/lib/zquickblox/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: 1369af8e34496409943492e131207ad8ed4d2a0b
|
4
|
+
data.tar.gz: 9e4f87009235dc5c3c2f9c206a07b620d99b9b83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a47cc84e93431300f223ea321d008be9f32d506e649b726b611ac662ccbb88219d1e30426d02ee67e4b4167cc470b85f94745febd4884b61fc0574e6258e025
|
7
|
+
data.tar.gz: 8c1e8ca2e319d049e82aa8f6437040429e8c48f4b42ab02d2c614e7a82cf7d8a0fa132dd668c5c262bb6178140c6ac567f9d76223956e906f607ac893d09869b
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module ZQuickblox
|
2
2
|
module Dialog
|
3
3
|
class GetDialogsRequest < Request
|
4
|
-
def initialize(params)
|
4
|
+
def initialize(params = nil)
|
5
5
|
super()
|
6
|
-
params = params.map { |key, value| "#{key}=#{value}" }.join("&")
|
6
|
+
params = params.map { |key, value| "#{key}=#{value}" }.join("&") if params
|
7
|
+
params = "" if params.nil?
|
7
8
|
@uri = "/chat/Dialog.json?#{params}"
|
8
9
|
@method = :get
|
9
10
|
end
|
data/lib/zquickblox/dialog.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative "dialog/get_dialogs_request"
|
|
5
5
|
module ZQuickblox
|
6
6
|
module Dialog
|
7
7
|
class << self
|
8
|
-
def get(login, password, params)
|
8
|
+
def get(login, password, params=nil)
|
9
9
|
request = ZQuickblox::Dialog::GetDialogsRequest.new(params)
|
10
10
|
run_request(login, password, request)
|
11
11
|
response = ZQuickblox::Util.symbolize_keys(request.response_body)
|
data/lib/zquickblox/version.rb
CHANGED