Module: HappyMapper::ClassMethods

Defined in:
lib/pivotal-tracker/extensions.rb

Instance Method Summary collapse

Instance Method Details

#orig_parseObject



5
# File 'lib/pivotal-tracker/extensions.rb', line 5

alias_method :orig_parse, :parse

#parse(xml, options = {}) ⇒ Object



6
7
8
9
# File 'lib/pivotal-tracker/extensions.rb', line 6

def parse(xml, options={})
  xml = xml.to_s if xml.is_a?(RestClient::Response)
  orig_parse(xml, options)
end