Exception: Reactor::Cm::XmlRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/reactor/cm/xml_request_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ XmlRequestError

Returns a new instance of XmlRequestError.



5
6
7
8
9
# File 'lib/reactor/cm/xml_request_error.rb', line 5

def initialize(response)
  @response = response
  @xml = response.xml
  super(phrase)
end

Instance Method Details

#phraseObject



11
12
13
# File 'lib/reactor/cm/xml_request_error.rb', line 11

def phrase
  @response.xpath('//phrase').to_s
end