Class: ChatSDK::Events::Action

Inherits:
Base
  • Object
show all
Defined in:
lib/chat_sdk/events/action.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#adapter_name, #platform, #raw, #timestamp, #type

Instance Method Summary collapse

Constructor Details

#initialize(action_id:, thread_id:, channel_id:, value: nil, user: nil, trigger_id: nil, **kwargs) ⇒ Action

Returns a new instance of Action.



9
10
11
12
13
14
15
16
17
# File 'lib/chat_sdk/events/action.rb', line 9

def initialize(action_id:, thread_id:, channel_id:, value: nil, user: nil, trigger_id: nil, **kwargs)
  super(type: :action, **kwargs)
  @action_id = action_id
  @value = value
  @user = user
  @thread_id = thread_id
  @channel_id = channel_id
  @trigger_id = trigger_id
end

Instance Attribute Details

#action_idObject (readonly)

Returns the value of attribute action_id.



6
7
8
# File 'lib/chat_sdk/events/action.rb', line 6

def action_id
  @action_id
end

#channel_idObject (readonly)

Returns the value of attribute channel_id.



6
7
8
# File 'lib/chat_sdk/events/action.rb', line 6

def channel_id
  @channel_id
end

#threadObject

Returns the value of attribute thread.



7
8
9
# File 'lib/chat_sdk/events/action.rb', line 7

def thread
  @thread
end

#thread_idObject (readonly)

Returns the value of attribute thread_id.



6
7
8
# File 'lib/chat_sdk/events/action.rb', line 6

def thread_id
  @thread_id
end

#trigger_idObject (readonly)

Returns the value of attribute trigger_id.



6
7
8
# File 'lib/chat_sdk/events/action.rb', line 6

def trigger_id
  @trigger_id
end

#userObject (readonly)

Returns the value of attribute user.



6
7
8
# File 'lib/chat_sdk/events/action.rb', line 6

def user
  @user
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/chat_sdk/events/action.rb', line 6

def value
  @value
end