Sha256: 2aab492e05838a975c725d92c6769506caf31840fa9ba0e5a9c81eccd0ef3eb2

Contents?: true

Size: 514 Bytes

Versions: 5

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

module Tikkie
  module Api
    module Responses
      # Error response from Tikkie.
      class Error < Base
        def code
          data[:code]
        end

        def message
          data[:message]
        end

        def reference
          data[:reference]
        end

        def trace_id
          data[:traceId]
        end

        def status
          data[:status]
        end

        def category
          data[:category]
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tikkie-api-0.2.2 lib/tikkie/api/responses/error.rb
tikkie-api-0.2.1 lib/tikkie/api/responses/error.rb
tikkie-api-0.2.0 lib/tikkie/api/responses/error.rb
tikkie-api-0.1.1 lib/tikkie/api/responses/error.rb
tikkie-api-0.1.0 lib/tikkie/api/responses/error.rb