Class: Arkaan::Authentication::Device
- Inherits:
-
Object
- Object
- Arkaan::Authentication::Device
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/authentication/device.rb
Overview
A device is a computer or mobile phone from which a user logs in.
Instance Attribute Summary collapse
-
#ip ⇒ String
The IP address of the user.
-
#sessions ⇒ Array<Arkaan::Authentication::Session] the sessions this browser is linked to.
Array<Arkaan::Authentication::Session] the sessions this browser is linked to.
-
#user_agent ⇒ String
The string representation of the browser and OS of the user.
Instance Attribute Details
#ip ⇒ String
Returns the IP address of the user.
16 |
# File 'lib/arkaan/authentication/device.rb', line 16 field :ip, type: String |
#sessions ⇒ Array<Arkaan::Authentication::Session] the sessions this browser is linked to.
Returns Array<Arkaan::Authentication::Session] the sessions this browser is linked to.
20 |
# File 'lib/arkaan/authentication/device.rb', line 20 has_many :sessions, class_name: 'Arkaan::Authentication::Session', inverse_of: :device |
#user_agent ⇒ String
Returns the string representation of the browser and OS of the user.
13 |
# File 'lib/arkaan/authentication/device.rb', line 13 field :user_agent, type: String |