Class: Rex::Proto::Amqp::Version091::Types::AmqpVersion091Boolean

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/rex/proto/amqp/version_0_9_1/types.rb

Overview

Primitive Scalar Types

Instance Method Summary collapse

Instance Method Details

#getObject



16
17
18
# File 'lib/rex/proto/amqp/version_0_9_1/types.rb', line 16

def get
  self.data != 0
end

#set(v) ⇒ Object



20
21
22
# File 'lib/rex/proto/amqp/version_0_9_1/types.rb', line 20

def set(v)
  self.data = v ? 1 : 0
end