lib/lifen/flow.rb in lifen-1.2.0 vs lib/lifen/flow.rb in lifen-1.3.0
- old
+ new
@@ -26,9 +26,17 @@
check_if_users_were_attached!(users_to_attach)
self
end
+ def save
+ params = {title: title, uuid: uuid}
+
+ json = client.put("central/api/chats/#{uuid}", params)
+
+ self.title = json["title"]
+ end
+
def attach_users(users_to_attach)
params = extract_users_uuids(users_to_attach)
json = client.post("central/api/chats/#{uuid}/attach_users?rel=activeUsers", params)
\ No newline at end of file