Module: Rally::ParsingHelpers

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

Instance Method Summary collapse

Instance Method Details

#raw_json(options = {}) ⇒ Object



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/rally/parsing_helpers.rb', line 22

def raw_json options = {}
  options[:refresh] = options[:refresh] || false

  unless self.rally_uri
    raise "Could not fetch resource"
  end
  
  if @rally_hash
    return @rally_hash 
  else
    @rally_hash = get_fields_from_rally
  end
  
  @rally_hash
  
end