Class: ChatSDK::Events::SubscribedMessage
- Defined in:
- lib/chat_sdk/events/subscribed_message.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ Object
readonly
Returns the value of attribute channel_id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#thread_id ⇒ Object
readonly
Returns the value of attribute thread_id.
Attributes inherited from Base
#adapter_name, #platform, #raw, #timestamp, #type
Instance Method Summary collapse
-
#initialize(message:, thread_id:, channel_id:, **kwargs) ⇒ SubscribedMessage
constructor
A new instance of SubscribedMessage.
Constructor Details
#initialize(message:, thread_id:, channel_id:, **kwargs) ⇒ SubscribedMessage
Returns a new instance of SubscribedMessage.
8 9 10 11 12 13 |
# File 'lib/chat_sdk/events/subscribed_message.rb', line 8 def initialize(message:, thread_id:, channel_id:, **kwargs) super(type: :subscribed_message, **kwargs) @message = @thread_id = thread_id @channel_id = channel_id end |
Instance Attribute Details
#channel_id ⇒ Object (readonly)
Returns the value of attribute channel_id.
6 7 8 |
# File 'lib/chat_sdk/events/subscribed_message.rb', line 6 def channel_id @channel_id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/chat_sdk/events/subscribed_message.rb', line 6 def @message end |
#thread_id ⇒ Object (readonly)
Returns the value of attribute thread_id.
6 7 8 |
# File 'lib/chat_sdk/events/subscribed_message.rb', line 6 def thread_id @thread_id end |