circuit-api 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/circuit_api/resources/message.rb +7 -4
- data/lib/circuit_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 234c66d2905614c06c4e4ccc07a8edfbda7766f1b95a56988fea7e4f45f8af1f
|
4
|
+
data.tar.gz: 8b83b6abe3f0ae5b83e9ded857ea2f3eaeb0b3ecd3670604571f5caff4e5ef43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fb646160c7202d9b97d045509f172f99030ef668435927b489e43472f30f2b2888ee1c9a9e98931e3f944c24571bc7609475055b47dac08535befcebb0f1bf1
|
7
|
+
data.tar.gz: 0f658a47de93057fbea22f512876fb326b32c6dc7fd5df6bc63a194acaf241f71011e0a171535ac6e5cd10117586e8efa47abe22ebdb27b538153f2059cbb8e6
|
@@ -6,10 +6,13 @@ module CircuitApi
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def create(conversation_id, params)
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
path = api_resource.sub(':id', conversation_id)
|
10
|
+
|
11
|
+
if CircuitApi::Utils::Object.present?(params[:item_id])
|
12
|
+
path = "#{path}/#{params.delete(:item_id)}"
|
13
|
+
end
|
14
|
+
|
15
|
+
result = connection(path, params).post
|
13
16
|
response_to_object(result)
|
14
17
|
end
|
15
18
|
end
|
data/lib/circuit_api/version.rb
CHANGED