Class: Valkey::Glide::PubSub::Message Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/valkey/glide/pubsub.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

One delivered push: the incoming message, the channel that carried it, and the pattern that matched it. pattern is set only for PMESSAGE; exact and sharded pushes leave it nil.

Instance Attribute Summary collapse

Instance Attribute Details

#channel ⇒ Object

Returns the value of attribute channel

Returns:

  • (Object) —

    the current value of channel



62
63
64
# File 'lib/valkey/glide/pubsub.rb', line 62

def channel
  @channel
end

#message ⇒ Object

Returns the value of attribute message

Returns:

  • (Object) —

    the current value of message



62
63
64
# File 'lib/valkey/glide/pubsub.rb', line 62

def message
  @message
end

#pattern ⇒ Object

Returns the value of attribute pattern

Returns:

  • (Object) —

    the current value of pattern



62
63
64
# File 'lib/valkey/glide/pubsub.rb', line 62

def pattern
  @pattern
end