Class: ChatSDK::Events::Action
- Defined in:
- lib/chat_sdk/events/action.rb
Instance Attribute Summary collapse
-
#action_id ⇒ Object
readonly
Returns the value of attribute action_id.
-
#channel_id ⇒ Object
readonly
Returns the value of attribute channel_id.
-
#thread ⇒ Object
Returns the value of attribute thread.
-
#thread_id ⇒ Object
readonly
Returns the value of attribute thread_id.
-
#trigger_id ⇒ Object
readonly
Returns the value of attribute trigger_id.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
#adapter_name, #platform, #raw, #timestamp, #type
Instance Method Summary collapse
-
#initialize(action_id:, thread_id:, channel_id:, value: nil, user: nil, trigger_id: nil, **kwargs) ⇒ Action
constructor
A new instance of Action.
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_id ⇒ Object (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_id ⇒ Object (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 |
#thread ⇒ Object
Returns the value of attribute thread.
7 8 9 |
# File 'lib/chat_sdk/events/action.rb', line 7 def thread @thread end |
#thread_id ⇒ Object (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_id ⇒ Object (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 |
#user ⇒ Object (readonly)
Returns the value of attribute user.
6 7 8 |
# File 'lib/chat_sdk/events/action.rb', line 6 def user @user end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/chat_sdk/events/action.rb', line 6 def value @value end |