Sha256: 33f1b16eb25452faf6b024d677ff412d243f0b5069de30cedb49a76f2d5111d7

Contents?: true

Size: 341 Bytes

Versions: 47

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module Models
    module Accessible
      # Indicates whether the object is accessible (not expired and not revoked).
      #
      # @return [Boolean] true if object accessible or false in other case
      #
      def accessible?
        !expired? && !revoked?
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
doorkeeper-5.8.0 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.7.1 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.7.0 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.9 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.8 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.7 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.6 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.5 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.4 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.3 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.2 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.1 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.0 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.0.rc2 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.6.0.rc1 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.5.4 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.5.3 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.5.2 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.5.1 lib/doorkeeper/models/concerns/accessible.rb
doorkeeper-5.5.0 lib/doorkeeper/models/concerns/accessible.rb