rightresource 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/right_resource/server.rb +7 -7
- metadata +3 -3
@@ -39,12 +39,12 @@ class Server < RightResource::Base
|
|
39
39
|
generate_attributes(format.decode(connection.get(path)))
|
40
40
|
end
|
41
41
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
42
|
+
def tags(resource_href)
|
43
|
+
query_options = {'resource_href' => resource_href}
|
44
|
+
path = "tags/search.#{format.extension}#{query_string(query_options)}"
|
45
|
+
Hash[*format.decode(connection.get(path)).collect {|tag|
|
46
|
+
tag['name'].split('=')
|
47
|
+
}.flatten]
|
48
|
+
end
|
49
49
|
end
|
50
50
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rightresource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 8
|
10
|
+
version: 0.2.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Satoshi Ohki
|