Sha256: 137fd8927fe1f8a5a5dac5beefe559fbf3d381e27f67580107a68a3a1da86234

Contents?: true

Size: 220 Bytes

Versions: 6

Compression:

Stored size: 220 Bytes

Contents

module OmiseGO
  class Error < Base
    attributes :code, :description, :messages

    def to_s
      "#{code} - #{description}"
    end

    def success?
      false
    end

    def error?
      true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omisego-0.12.0 lib/omisego/error.rb
omisego-0.11.0 lib/omisego/error.rb
omisego-0.10.0 lib/omisego/error.rb
omisego-0.9.6 lib/omisego/error.rb
omisego-0.9.5 lib/omisego/error.rb
omisego-0.9.4 lib/omisego/error.rb