Sha256: 6edce01cf47a7a08a141efa4b94a43b8446b0c4e920052fcb340ce6f5a03d521

Contents?: true

Size: 306 Bytes

Versions: 19

Compression:

Stored size: 306 Bytes

Contents

module Sisow
  class ErrorResponse
    attr_accessor :code, :message

    def initialize(response)
      @code    = response.errorresponse.error.errorcode
      @message = response.errorresponse.error.errormessage
    end

    def message
      "An error occurred: #{@code}. #{@message}"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sisow-2.1 lib/sisow/error_response.rb
sisow-2.0 lib/sisow/error_response.rb
sisow-1.7 lib/sisow/error_response.rb
sisow-1.6 lib/sisow/error_response.rb
sisow-1.5 lib/sisow/error_response.rb
sisow-1.4 lib/sisow/error_response.rb
sisow-1.3 lib/sisow/error_response.rb
sisow-1.2 lib/sisow/error_response.rb
sisow-1.1.1 lib/sisow/error_response.rb
sisow-1.1.0 lib/sisow/error_response.rb
sisow-1.0.1 lib/sisow/error_response.rb
sisow-1.0.0 lib/sisow/error_response.rb
sisow-0.9.9 lib/sisow/error_response.rb
sisow-0.9.5 lib/sisow/error_response.rb
sisow-0.9.4 lib/sisow/error_response.rb
sisow-0.9.3 lib/sisow/error_response.rb
sisow-0.9.2 lib/sisow/error_response.rb
sisow-0.9.1 lib/sisow/error_response.rb
sisow-0.9.0 lib/sisow/error_response.rb