Sha256: 2f7702c9936e3b29a6cb1b2097e0ad4227e48789b759f5544e68d986bced5644

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

module Tikkie
  module Api
    module V1
      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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tikkie-api-2.0.0 lib/tikkie/api/v1/responses/error.rb