Class: Twitch::Bot::Message::Ping
- Defined in:
- lib/twitch/bot/message.rb
Overview
This class stores the details of a Ping event.
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(hostname:) ⇒ Ping
constructor
A new instance of Ping.
Constructor Details
#initialize(hostname:) ⇒ Ping
Returns a new instance of Ping.
27 28 29 30 |
# File 'lib/twitch/bot/message.rb', line 27 def initialize(hostname:) @hostname = hostname super(type: :ping) end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
25 26 27 |
# File 'lib/twitch/bot/message.rb', line 25 def hostname @hostname end |