Class: Hashcheck::Check
- Inherits:
-
Object
- Object
- Hashcheck::Check
- Defined in:
- lib/hashcheck/check.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
Returns the value of attribute hash.
-
#hash_type ⇒ Object
Returns the value of attribute hash_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#salt ⇒ Object
Returns the value of attribute salt.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, salt = "") ⇒ Check
constructor
A new instance of Check.
Constructor Details
#initialize(value, salt = "") ⇒ Check
Returns a new instance of Check.
5 6 7 8 9 10 11 |
# File 'lib/hashcheck/check.rb', line 5 def initialize(value,salt="") @value = value @hash_type = get_hash_type @hash = get_hash @salt = get_salt @name = search end |
Instance Attribute Details
#hash ⇒ Object
Returns the value of attribute hash.
3 4 5 |
# File 'lib/hashcheck/check.rb', line 3 def hash @hash end |
#hash_type ⇒ Object
Returns the value of attribute hash_type.
3 4 5 |
# File 'lib/hashcheck/check.rb', line 3 def hash_type @hash_type end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/hashcheck/check.rb', line 3 def name @name end |
#salt ⇒ Object
Returns the value of attribute salt.
3 4 5 |
# File 'lib/hashcheck/check.rb', line 3 def salt @salt end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/hashcheck/check.rb', line 3 def value @value end |