Class: LittleGhost::AgentInterruptions::Batch

Inherits:
Data
  • Object
show all
Defined in:
lib/little_ghost/agent_interruptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ticketsObject (readonly)

Returns the value of attribute tickets

Returns:

  • (Object)

    the current value of tickets



23
24
25
# File 'lib/little_ghost/agent_interruptions.rb', line 23

def tickets
  @tickets
end

Instance Method Details

#batch_keyObject



25
# File 'lib/little_ghost/agent_interruptions.rb', line 25

def batch_key = tickets.first&.batch_key

#interruption_idsObject



24
# File 'lib/little_ghost/agent_interruptions.rb', line 24

def interruption_ids = tickets.map(&:id)

#metadataObject



26
# File 'lib/little_ghost/agent_interruptions.rb', line 26

def  = tickets.last&.