Class: PoolLint::AdvisoryLock

Inherits:
Struct
  • Object
show all
Defined in:
lib/poollint/report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_idObject

Returns the value of attribute class_id

Returns:

  • (Object)

    the current value of class_id



13
14
15
# File 'lib/poollint/report.rb', line 13

def class_id
  @class_id
end

#databaseObject

Returns the value of attribute database

Returns:

  • (Object)

    the current value of database



13
14
15
# File 'lib/poollint/report.rb', line 13

def database
  @database
end

#human_nameObject

Returns the value of attribute human_name

Returns:

  • (Object)

    the current value of human_name



13
14
15
# File 'lib/poollint/report.rb', line 13

def human_name
  @human_name
end

#modeObject

Returns the value of attribute mode

Returns:

  • (Object)

    the current value of mode



13
14
15
# File 'lib/poollint/report.rb', line 13

def mode
  @mode
end

#object_keyObject

Returns the value of attribute object_key

Returns:

  • (Object)

    the current value of object_key



13
14
15
# File 'lib/poollint/report.rb', line 13

def object_key
  @object_key
end

#object_sub_idObject

Returns the value of attribute object_sub_id

Returns:

  • (Object)

    the current value of object_sub_id



13
14
15
# File 'lib/poollint/report.rb', line 13

def object_sub_id
  @object_sub_id
end

Instance Method Details

#fingerprintObject



22
23
24
# File 'lib/poollint/report.rb', line 22

def fingerprint
  [database, class_id, object_key, object_sub_id, mode]
end

#numeric_keyObject



26
27
28
# File 'lib/poollint/report.rb', line 26

def numeric_key
  (class_id.to_i << 32) | object_key.to_i
end