Sha256: 456c6b967e79feede33abb47cf732da548e665d566d53892c0505abfb1072346

Contents?: true

Size: 210 Bytes

Versions: 2

Compression:

Stored size: 210 Bytes

Contents

module Apiwha
  class Error < StandardError

    attr_reader :reason

    def initialize(response)
      @reason = response
    end

    def message
      "#{@reason}"
    end
    alias :to_s :message
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apiwha-0.1.1 lib/apiwha/error.rb
apiwha-0.1.0 lib/apiwha/error.rb