Class: Caldera::Events::WebSocketClosed
- Inherits:
-
Object
- Object
- Caldera::Events::WebSocketClosed
- Defined in:
- lib/caldera/events.rb
Instance Attribute Summary collapse
-
#by_remote ⇒ Object
(also: #by_remote?)
readonly
Returns the value of attribute by_remote.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#guild_id ⇒ Object
readonly
Returns the value of attribute guild_id.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(data, _player) ⇒ WebSocketClosed
constructor
A new instance of WebSocketClosed.
Constructor Details
#initialize(data, _player) ⇒ WebSocketClosed
Returns a new instance of WebSocketClosed.
61 62 63 64 65 66 |
# File 'lib/caldera/events.rb', line 61 def initialize(data, _player) @guild_id = data['guildId'] @code = data['code'] @reason = data['reason'] @by_remote = data['byRemote'] end |
Instance Attribute Details
#by_remote ⇒ Object (readonly) Also known as: by_remote?
Returns the value of attribute by_remote.
58 59 60 |
# File 'lib/caldera/events.rb', line 58 def by_remote @by_remote end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
52 53 54 |
# File 'lib/caldera/events.rb', line 52 def code @code end |
#guild_id ⇒ Object (readonly)
Returns the value of attribute guild_id.
49 50 51 |
# File 'lib/caldera/events.rb', line 49 def guild_id @guild_id end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
55 56 57 |
# File 'lib/caldera/events.rb', line 55 def reason @reason end |