Class: OsCtld::LockRegistry::Lock

Inherits:
Struct
  • Object
show all
Defined in:
lib/osctld/lock_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backtraceObject

Returns the value of attribute backtrace

Returns:

  • (Object)

    the current value of backtrace



12
13
14
# File 'lib/osctld/lock_registry.rb', line 12

def backtrace
  @backtrace
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



12
13
14
# File 'lib/osctld/lock_registry.rb', line 12

def id
  @id
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



12
13
14
# File 'lib/osctld/lock_registry.rb', line 12

def object
  @object
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



12
13
14
# File 'lib/osctld/lock_registry.rb', line 12

def state
  @state
end

#threadObject

Returns the value of attribute thread

Returns:

  • (Object)

    the current value of thread



12
13
14
# File 'lib/osctld/lock_registry.rb', line 12

def thread
  @thread
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



12
13
14
# File 'lib/osctld/lock_registry.rb', line 12

def time
  @time
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



12
13
14
# File 'lib/osctld/lock_registry.rb', line 12

def type
  @type
end

Instance Method Details

#==(other) ⇒ Object



13
14
15
# File 'lib/osctld/lock_registry.rb', line 13

def ==(other)
  thread == other.thread && object == other.object && type == other.type
end