Class: NoPassword::Verification

Inherits:
Model
  • Object
show all
Defined in:
app/models/nopassword/verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from NoPassword::Model

Instance Attribute Details

#codeObject

Returns the value of attribute code.



16
17
18
# File 'app/models/nopassword/verification.rb', line 16

def code
  @code
end

#dataObject

Returns the value of attribute data.



22
23
24
# File 'app/models/nopassword/verification.rb', line 22

def data
  @data
end

#saltObject

Returns the value of attribute salt.



13
14
15
# File 'app/models/nopassword/verification.rb', line 13

def salt
  @salt
end

Instance Method Details

#has_incorrect_code?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/models/nopassword/verification.rb', line 28

def has_incorrect_code?
  not has_authentic_code?
end