Class: Twitch::Bot::Message::Subscription
- Defined in:
- lib/twitch/bot/message.rb
Overview
This class stores the details of a Subscription event.
Instance Attribute Summary collapse
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(user:) ⇒ Subscription
constructor
A new instance of Subscription.
Constructor Details
#initialize(user:) ⇒ Subscription
Returns a new instance of Subscription.
62 63 64 65 |
# File 'lib/twitch/bot/message.rb', line 62 def initialize(user:) @user = user super(type: :subscription) end |
Instance Attribute Details
#user ⇒ Object (readonly)
Returns the value of attribute user.
60 61 62 |
# File 'lib/twitch/bot/message.rb', line 60 def user @user end |