Sha256: d6342c98849b5fb4bd56a59fb3691665c77a536cc42214d0f7704264b4f88662
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true module Talkbird module Result # Class representing a result as an exception. class Exception attr_reader :body attr_reader :result attr_reader :exception def initialize(exception, result) @result = result @exception = exception @body = { error: exception.message } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
talkbird-0.0.5 | lib/talkbird/result/exception.rb |
talkbird-0.0.4 | lib/talkbird/result/exception.rb |