Class: Twitch::Bot::Message::Ping

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

Overview

This class stores the details of a Ping event.

Instance Attribute Summary collapse

Attributes inherited from Event

#type

Instance Method Summary collapse

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

#hostnameObject (readonly)

Returns the value of attribute hostname.



25
26
27
# File 'lib/twitch/bot/message.rb', line 25

def hostname
  @hostname
end