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



93
94
95
# File 'lib/ffi-rzmq-core/structures.rb', line 93

def event
  self[:event]
end

#inspectObject



101
102
103
# File 'lib/ffi-rzmq-core/structures.rb', line 101

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

#valueObject



97
98
99
# File 'lib/ffi-rzmq-core/structures.rb', line 97

def value
  self[:value]
end