Class: Rubirai::PokeMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/rubirai/messages/message.rb

Overview

The poke message type

Instance Attribute Summary collapse

Attributes inherited from Message

#bot, #type

Class Method Summary collapse

Methods inherited from Message

all_types, check_type, #to_h, to_message

Instance Attribute Details

#nameString (readonly)

Returns type (name) of the poke.

Returns:

  • (String)

    type (name) of the poke



416
# File 'lib/rubirai/messages/message.rb', line 416

set_message :Poke, :name

Class Method Details

.from(**kwargs) ⇒ Rubirai::PokeMessage

Options Hash (**kwargs):

  • :name (String)

    the name (type) of poke

Returns:



416
# File 'lib/rubirai/messages/message.rb', line 416

set_message :Poke, :name