lib/airbrake/response.rb in airbrake-3.1.12 vs lib/airbrake/response.rb in airbrake-3.1.13
- old
+ new
@@ -6,26 +6,24 @@
xml_body
end
def to_s
output = "\n"
- output = "UUID: #{id}"
+ output = "UUID: #{@id}"
output << "\n"
- output << "URL: #{url}"
+ output << "URL: #{@url}"
output
end
private
- attr_accessor :xml_body, :url, :id
-
def initialize(xml_body)
- self.xml_body = xml_body
- self.url = parse_tag("url")
- self.id = parse_tag("id")
+ @xml_body = xml_body
+ @url = parse_tag("url")
+ @id = parse_tag("id")
end
def parse_tag(name)
- xml_body.match(%r{<#{name}[^>]*>(.*?)</#{name}>})[1]
+ @xml_body.match(%r{<#{name}[^>]*>(.*?)</#{name}>})[1]
end
end
end