Class: NusaDB::Notification

Inherits:
Struct
  • Object
show all
Defined in:
lib/nusadb/connection.rb

Overview

An asynchronous LISTEN/NOTIFY message delivered by the server: the notifying backend's pid, the channel, and its (possibly empty) payload.

Instance Attribute Summary collapse

Instance Attribute Details

#channelObject

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of channel



59
60
61
# File 'lib/nusadb/connection.rb', line 59

def channel
  @channel
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



59
60
61
# File 'lib/nusadb/connection.rb', line 59

def payload
  @payload
end

#pidObject

Returns the value of attribute pid

Returns:

  • (Object)

    the current value of pid



59
60
61
# File 'lib/nusadb/connection.rb', line 59

def pid
  @pid
end