Class: Rex::Proto::Amqp::Version091::Types::AmqpVersion091Timestamp

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

Instance Method Summary collapse

Instance Method Details

#getObject



60
61
62
# File 'lib/rex/proto/amqp/version_0_9_1/types.rb', line 60

def get
  Time.at(self.data)
end

#set(v) ⇒ Object



64
65
66
# File 'lib/rex/proto/amqp/version_0_9_1/types.rb', line 64

def set(v)
  self.data = v.to_i
end