Sha256: c071060457785ae7fae90588efc8b96bb584ae153f2410251d85fe573b0cd03b

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module DeviceAuthorizationGrant
    # Model class, similar to Doorkeeper `AccessGrant`, but specific for
    # handling OAuth 2.0 Device Authorization Grant.
    class DeviceGrant < ActiveRecord::Base # rubocop:disable Rails/ApplicationRecord Doorkeeper models inherit from ActiveRecord::Base.
      include DeviceGrantMixin

      # @!attribute application_id
      #   @return [Integer]

      # @!attribute resource_owner_id
      #   @return [Integer, nil]

      # @!attribute expires_in
      #   @return [Integer]

      # @!attribute scopes
      #   @return [String]

      # @!attribute device_code
      #   @return [String]

      # @!attribute user_code
      #   @return [String, nil]

      # @!attribute created_at
      #   @return [Time]

      # @!attribute last_polling_at
      #   @return [Time, nil]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-device_authorization_grant-1.0.3 lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb
doorkeeper-device_authorization_grant-1.0.2 lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb