Class: Twitch::Bot::Message::Subscription

Inherits:
Base
  • Object
show all
Defined in:
lib/twitch/bot/message.rb

Overview

This class stores the details of a Subscription event.

Instance Attribute Summary collapse

Attributes inherited from Event

#type

Instance Method Summary collapse

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

#userObject (readonly)

Returns the value of attribute user.



60
61
62
# File 'lib/twitch/bot/message.rb', line 60

def user
  @user
end