Class: Assistant::TechnicalSupport::CaseEventStream::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, source_type:, source_id:, occurred_at:, text:, kind: nil, actor_role: nil, direction: nil, status: nil) ⇒ Event

Returns a new instance of Event.



31
32
33
34
35
36
# File 'app/services/assistant/technical_support/case_event_stream.rb', line 31

def initialize(
  key:, source_type:, source_id:, occurred_at:, text:, kind: nil,
  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



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

def actor_role
  @actor_role
end

#directionObject (readonly)

Returns the value of attribute direction

Returns:

  • (Object)

    the current value of direction



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

def direction
  @direction
end

#keyObject (readonly)

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



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

def key
  @key
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



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

def kind
  @kind
end

#occurred_atObject (readonly)

Returns the value of attribute occurred_at

Returns:

  • (Object)

    the current value of occurred_at



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

def occurred_at
  @occurred_at
end

#source_idObject (readonly)

Returns the value of attribute source_id

Returns:

  • (Object)

    the current value of source_id



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

def source_id
  @source_id
end

#source_typeObject (readonly)

Returns the value of attribute source_type

Returns:

  • (Object)

    the current value of source_type



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

def source_type
  @source_type
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



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

def text
  @text
end