lib/impas-client.rb in impas-client-0.0.6 vs lib/impas-client.rb in impas-client-0.0.7

- old
+ new

@@ -37,9 +37,20 @@ end true end + def delete_group(grp_key) + entry_point = "/api/group/#{@op_key}/#{grp_key}" + res = @@conn.delete entry_point + + if res.status != 200 + raise StandardError.new("HTTP status:#{res.status}") + end + + true + end + def groups entry_point = "/api/group/#{@op_key}" res = @@conn.get entry_point if res.status != 200