Module: Rally::ParsingHelperClassMethods

Included in:
Iteration, Project, Revision, RevisionHistory, Story
Defined in:
lib/rally/parsing_helpers.rb

Instance Method Summary collapse

Instance Method Details

#from_uri(uri) ⇒ Object



11
12
13
14
# File 'lib/rally/parsing_helpers.rb', line 11

def from_uri(uri)
  obj = first(:conditions => {:rally_uri => uri}) || new(:rally_uri => uri)
  obj.refresh
end

#node_nameObject



3
4
5
6
7
8
9
# File 'lib/rally/parsing_helpers.rb', line 3

def node_name
  if self.to_s == "Story"
    "HierarchicalRequirement"
  else
    self.to_s
  end
end

#rally_query(options = {}) ⇒ Object



16
17
18
# File 'lib/rally/parsing_helpers.rb', line 16

def rally_query options={}
  RallyAPI.all(self, options)
end