Class: CommandTower::Impersonation::EstablishedIdentity

Inherits:
Data
  • Object
show all
Defined in:
lib/command_tower/impersonation/establish_identity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor

Returns:

  • (Object)

    the current value of actor



5
6
7
# File 'lib/command_tower/impersonation/establish_identity.rb', line 5

def actor
  @actor
end

#sessionObject (readonly)

Returns the value of attribute session

Returns:

  • (Object)

    the current value of session



5
6
7
# File 'lib/command_tower/impersonation/establish_identity.rb', line 5

def session
  @session
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'lib/command_tower/impersonation/establish_identity.rb', line 5

def status
  @status
end

#userObject (readonly)

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



5
6
7
# File 'lib/command_tower/impersonation/establish_identity.rb', line 5

def user
  @user
end

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/command_tower/impersonation/establish_identity.rb', line 10

def active?
  status == :active
end

#expired?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/command_tower/impersonation/establish_identity.rb', line 6

def expired?
  status == :expired
end