rally_rest_api 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +4 -0
- data/lib/rally_rest_api/attribute_definition.rb +33 -0
- data/lib/rally_rest_api/version.rb +1 -1
- metadata +5 -1
data/Manifest.txt
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
CHANGELOG.txt
|
2
2
|
History.txt
|
3
|
+
lib/rally_rest_api/attribute_definition.rb
|
3
4
|
lib/rally_rest_api/query.rb
|
4
5
|
lib/rally_rest_api/query_result.rb
|
5
6
|
lib/rally_rest_api/rally_rest.rb
|
@@ -12,6 +13,9 @@ Manifest.txt
|
|
12
13
|
Rakefile
|
13
14
|
README.txt
|
14
15
|
setup.rb
|
16
|
+
test/attribute_definition_spec.rb
|
17
|
+
test/query_result_spec.rb
|
18
|
+
test/spec_typedef.rb
|
15
19
|
test/tc_query_result.rb
|
16
20
|
test/tc_rest_api.rb
|
17
21
|
test/tc_rest_object.rb
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/rest_object'
|
2
|
+
|
3
|
+
class AttributeDefinition < RestObject # :nodoc:
|
4
|
+
|
5
|
+
def initialize(rally_rest, values)
|
6
|
+
@rally_rest = rally_rest
|
7
|
+
@elements = values
|
8
|
+
end
|
9
|
+
|
10
|
+
# return the XML of the resource
|
11
|
+
def body
|
12
|
+
nil
|
13
|
+
end
|
14
|
+
|
15
|
+
# the resource's URI
|
16
|
+
def ref
|
17
|
+
nil
|
18
|
+
end
|
19
|
+
|
20
|
+
# The name of the object, without having to read the entire body
|
21
|
+
def name
|
22
|
+
@elements[:name]
|
23
|
+
end
|
24
|
+
|
25
|
+
# The type of the underlying resource
|
26
|
+
def type
|
27
|
+
"AttributeDefinition"
|
28
|
+
end
|
29
|
+
|
30
|
+
def allowed_values
|
31
|
+
self.elements[:allowed_values].map {|e| e[:string_value] }
|
32
|
+
end
|
33
|
+
end
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rally_rest_api
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.6.
|
6
|
+
version: 0.6.2
|
7
7
|
date: 2006-12-18 00:00:00 -07:00
|
8
8
|
summary: A ruby-ized interface to Rally's REST webservices API
|
9
9
|
require_paths:
|
@@ -31,6 +31,7 @@ authors:
|
|
31
31
|
files:
|
32
32
|
- CHANGELOG.txt
|
33
33
|
- History.txt
|
34
|
+
- lib/rally_rest_api/attribute_definition.rb
|
34
35
|
- lib/rally_rest_api/query.rb
|
35
36
|
- lib/rally_rest_api/query_result.rb
|
36
37
|
- lib/rally_rest_api/rally_rest.rb
|
@@ -43,6 +44,9 @@ files:
|
|
43
44
|
- Rakefile
|
44
45
|
- README.txt
|
45
46
|
- setup.rb
|
47
|
+
- test/attribute_definition_spec.rb
|
48
|
+
- test/query_result_spec.rb
|
49
|
+
- test/spec_typedef.rb
|
46
50
|
- test/tc_query_result.rb
|
47
51
|
- test/tc_rest_api.rb
|
48
52
|
- test/tc_rest_object.rb
|