Sha256: e9210ed0939e5568f308ed6bc8a15d6124ccbc2a53969b71c4078d2a788e1d21

Contents?: true

Size: 221 Bytes

Versions: 4

Compression:

Stored size: 221 Bytes

Contents

require 'ostruct'

module NtqExcelsior
  class Context < OpenStruct
    attr_accessor :success

    def success?
      @success.nil? || @success
    end

    def error?
      !@success.nil? && !@success
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ntq_excelsior-1.5.1 lib/ntq_excelsior/context.rb
ntq_excelsior-1.5.0 lib/ntq_excelsior/context.rb
ntq_excelsior-1.4.2 lib/ntq_excelsior/context.rb
ntq_excelsior-1.4.1 lib/ntq_excelsior/context.rb