Class: Doorkeeper::DeviceAuthorizationGrant::DeviceGrant

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
DeviceGrantMixin
Defined in:
lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb

Overview

Model class, similar to Doorkeeper ‘AccessGrant`, but specific for handling OAuth 2.0 Device Authorization Grant.

Instance Attribute Summary collapse

Method Summary

Methods included from DeviceGrantMixin

#plaintext_device_code

Instance Attribute Details

#application_idInteger

Returns:

  • (Integer)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 10

#created_atTime

Returns:

  • (Time)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 28

#device_codeString

Returns:

  • (String)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 22

#expires_inInteger

Returns:

  • (Integer)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 16

#last_polling_atTime?

Returns:

  • (Time, nil)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 31

#resource_owner_idInteger?

Returns:

  • (Integer, nil)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 13

#scopesString

Returns:

  • (String)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 19

#user_codeString?

Returns:

  • (String, nil)


# File 'lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb', line 25