impas-client 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/impas-client.rb +11 -0
- data/lib/impas-client/version.rb +1 -1
- metadata +2 -2
data/lib/impas-client.rb
CHANGED
@@ -39,6 +39,17 @@ module Impas
|
|
39
39
|
true
|
40
40
|
end
|
41
41
|
|
42
|
+
def delete_group(grp_key)
|
43
|
+
entry_point = "/api/group/#{@op_key}/#{grp_key}"
|
44
|
+
res = @@conn.delete entry_point
|
45
|
+
|
46
|
+
if res.status != 200
|
47
|
+
raise StandardError.new("HTTP status:#{res.status}")
|
48
|
+
end
|
49
|
+
|
50
|
+
true
|
51
|
+
end
|
52
|
+
|
42
53
|
def groups
|
43
54
|
entry_point = "/api/group/#{@op_key}"
|
44
55
|
res = @@conn.get entry_point
|
data/lib/impas-client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: impas-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|