Class: LibZMQ::EventData

Inherits:
FFI::Struct
  • Object
show all
Includes:
EventDataLayout
Defined in:
lib/ffi-rzmq-core/structures.rb

Overview

Provide a few convenience methods for accessing the event structure.

Instance Method Summary collapse

Methods included from EventDataLayout

included

Instance Method Details

#eventObject



121
122
123
# File 'lib/ffi-rzmq-core/structures.rb', line 121

def event
  self[:event]
end

#inspectObject



129
130
131
# File 'lib/ffi-rzmq-core/structures.rb', line 129

def inspect
  "event [#{event}], value [#{value}]"
end

#valueObject



125
126
127
# File 'lib/ffi-rzmq-core/structures.rb', line 125

def value
  self[:value]
end