Class: Assistant::TechnicalSupport::CaseEventStream::EventBuilder::RawEvent

Inherits:
Data
  • Object
show all
Defined in:
app/services/assistant/technical_support/case_event_stream/event_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_prefix:, source_type:, source_id:, occurred_at:, kind:, text:, sequence:, actor_role: nil, direction: nil, status: nil) ⇒ RawEvent

Returns a new instance of RawEvent.



18
19
20
21
22
23
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 18

def initialize(
  key_prefix:, source_type:, source_id:, occurred_at:, kind:, text:,
  sequence:, actor_role: nil, direction: nil, status: nil
)
  super
end

Instance Attribute Details

#actor_roleObject (readonly)

Returns the value of attribute actor_role

Returns:

  • (Object)

    the current value of actor_role



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def actor_role
  @actor_role
end

#directionObject (readonly)

Returns the value of attribute direction

Returns:

  • (Object)

    the current value of direction



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def direction
  @direction
end

#key_prefixObject (readonly)

Returns the value of attribute key_prefix

Returns:

  • (Object)

    the current value of key_prefix



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def key_prefix
  @key_prefix
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def kind
  @kind
end

#occurred_atObject (readonly)

Returns the value of attribute occurred_at

Returns:

  • (Object)

    the current value of occurred_at



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def occurred_at
  @occurred_at
end

#sequenceObject (readonly)

Returns the value of attribute sequence

Returns:

  • (Object)

    the current value of sequence



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def sequence
  @sequence
end

#source_idObject (readonly)

Returns the value of attribute source_id

Returns:

  • (Object)

    the current value of source_id



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def source_id
  @source_id
end

#source_typeObject (readonly)

Returns the value of attribute source_type

Returns:

  • (Object)

    the current value of source_type



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def source_type
  @source_type
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def status
  @status
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



6
7
8
# File 'app/services/assistant/technical_support/case_event_stream/event_builder.rb', line 6

def text
  @text
end