Class: SolidRedis::Subscription::Message
- Inherits:
-
Struct
- Object
- Struct
- SolidRedis::Subscription::Message
- Defined in:
- lib/solid_redis/subscription.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel
12 13 14 |
# File 'lib/solid_redis/subscription.rb', line 12 def channel @channel end |
#pattern ⇒ Object
Returns the value of attribute pattern
12 13 14 |
# File 'lib/solid_redis/subscription.rb', line 12 def pattern @pattern end |
#payload ⇒ Object
Returns the value of attribute payload
12 13 14 |
# File 'lib/solid_redis/subscription.rb', line 12 def payload @payload end |
#type ⇒ Object
Returns the value of attribute type
12 13 14 |
# File 'lib/solid_redis/subscription.rb', line 12 def type @type end |
Instance Method Details
#message? ⇒ Boolean
13 14 15 |
# File 'lib/solid_redis/subscription.rb', line 13 def %i[message pmessage smessage].include?(type) end |