Sha256: 2cba543af6c9aa6eace9cb389e3873ecb6ee63710df125f0b514a6202fc950fe

Contents?: true

Size: 304 Bytes

Versions: 11

Compression:

Stored size: 304 Bytes

Contents

# -*- encoding : utf-8 -*-
module Reactor
  module Cm
    class XmlRequestError < StandardError
      def initialize(response)
        @response = response
        @xml = response.xml
        super(phrase)
      end

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

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
infopark_reactor_migrations-1.9.0.beta2 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.9.0.beta lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.8.4 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.8.3 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.8.2 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.8.1 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.8.0 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.7.2 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.7.1 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.7.0 lib/reactor/cm/xml_request_error.rb
infopark_reactor_migrations-1.6.3 lib/reactor/cm/xml_request_error.rb