Class: Airbrake::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/airbrake/response.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.pretty_format(xml_body) ⇒ Object



3
4
5
6
7
# File 'lib/airbrake/response.rb', line 3

def self.pretty_format(xml_body)
  new(xml_body)
rescue
  xml_body
end

Instance Method Details

#to_sObject



9
10
11
12
13
14
15
# File 'lib/airbrake/response.rb', line 9

def to_s
  output = "\n"
  output = "UUID: #{@id}"
  output << "\n"
  output << "URL:  #{@url}"
  output
end