class RallyAPI::RallyQueryResult
Attributes
results[R]
total_result_count[R]
warnings[R]
Public Class Methods
new(rally_rest, json_results, warnings={})
click to toggle source
# File lib/rally_api/rally_query_result.rb, line 13 def initialize(rally_rest, json_results, warnings={}) @results = json_results["QueryResult"]["Results"] @total_result_count = json_results["QueryResult"]["TotalResultCount"] @rally_rest = rally_rest @warnings = warnings[:warnings] end
Public Instance Methods
[](index)
click to toggle source
# File lib/rally_api/rally_query_result.rb, line 26 def [](index) RallyObject.new(@rally_rest, @results[index]) end
each() { |rally_object| ... }
click to toggle source
# File lib/rally_api/rally_query_result.rb, line 20 def each @results.each do |result| yield RallyObject.new(@rally_rest, result) end end
empty?()
click to toggle source
# File lib/rally_api/rally_query_result.rb, line 38 def empty? length == 0 end
length()
click to toggle source
# File lib/rally_api/rally_query_result.rb, line 34 def length @results.length end
total_results()
click to toggle source
# File lib/rally_api/rally_query_result.rb, line 30 def total_results @total_result_count end