Class: Hashcheck::Check

Inherits:
Object
  • Object
show all
Defined in:
lib/hashcheck/check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hashObject

Returns the value of attribute hash.



3
4
5
# File 'lib/hashcheck/check.rb', line 3

def hash
  @hash
end

#hash_typeObject

Returns the value of attribute hash_type.



3
4
5
# File 'lib/hashcheck/check.rb', line 3

def hash_type
  @hash_type
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/hashcheck/check.rb', line 3

def name
  @name
end

#saltObject

Returns the value of attribute salt.



3
4
5
# File 'lib/hashcheck/check.rb', line 3

def salt
  @salt
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/hashcheck/check.rb', line 3

def value
  @value
end