Sha256: 278501c53cf7eb2adfc64b90a6405fb09c7a8a44b9834b6fc23f79218f6f17f0

Contents?: true

Size: 271 Bytes

Versions: 18

Compression:

Stored size: 271 Bytes

Contents

module Clearance
  class SuccessStatus
    def success?
      true
    end
  end

  class FailureStatus
    attr_reader :failure_message

    def initialize(failure_message)
      @failure_message = failure_message
    end

    def success?
      false
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
clearance-1.11.0 lib/clearance/session_status.rb
clearance-1.10.1 lib/clearance/session_status.rb
clearance-1.9.0 lib/clearance/session_status.rb
clearance-1.8.1 lib/clearance/session_status.rb
clearance-1.8.0 lib/clearance/session_status.rb
clearance-1.7.0 lib/clearance/session_status.rb
clearance-1.6.1 lib/clearance/session_status.rb
clearance-1.6.0 lib/clearance/session_status.rb
clearance-1.5.1 lib/clearance/session_status.rb
clearance-1.5.0 lib/clearance/session_status.rb
clearance-1.4.3 lib/clearance/session_status.rb
clearance-1.4.2 lib/clearance/session_status.rb
clearance-1.4.1 lib/clearance/session_status.rb
clearance-1.4.0 lib/clearance/session_status.rb
clearance-1.3.0 lib/clearance/session_status.rb
clearance-1.2.1 lib/clearance/session_status.rb
clearance-1.2.0 lib/clearance/session_status.rb
clearance-1.1.0 lib/clearance/session_status.rb