Exception: StandardId::AccountLockedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/standard_id/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account) ⇒ AccountLockedError

Returns a new instance of AccountLockedError.



12
13
14
15
16
17
# File 'lib/standard_id/errors.rb', line 12

def initialize()
  @account = 
  @lock_reason = .lock_reason
  @locked_at = .locked_at
  super("Account has been locked#{lock_reason ? ": #{lock_reason}" : ""}")
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



10
11
12
# File 'lib/standard_id/errors.rb', line 10

def 
  @account
end

#lock_reasonObject (readonly)

Returns the value of attribute lock_reason.



10
11
12
# File 'lib/standard_id/errors.rb', line 10

def lock_reason
  @lock_reason
end

#locked_atObject (readonly)

Returns the value of attribute locked_at.



10
11
12
# File 'lib/standard_id/errors.rb', line 10

def locked_at
  @locked_at
end