Class: CI::Queue::Redis::UnresolvedEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/ci/queue/redis/worker.rb

Overview

Minimal wrapper returned by resolve_entry when neither @index nor entry_resolver is available. Provides the interface callers expect (.id, .queue_entry) so that downstream code doesn’t crash with NoMethodError on a raw String.

Instance Attribute Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



19
20
21
# File 'lib/ci/queue/redis/worker.rb', line 19

def id
  @id
end

#queue_entryObject

Returns the value of attribute queue_entry

Returns:

  • (Object)

    the current value of queue_entry



19
20
21
# File 'lib/ci/queue/redis/worker.rb', line 19

def queue_entry
  @queue_entry
end