Class: OpenPGP::Packet::Trust

Inherits:
OpenPGP::Packet show all
Defined in:
lib/openpgp/packet.rb

Overview

OpenPGP Trust packet (tag 12).

Instance Attribute Summary collapse

Attributes inherited from OpenPGP::Packet

#size, #tag

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OpenPGP::Packet

#body, for, #initialize, parse, parse_new_format, parse_old_format, tag

Constructor Details

This class inherits a constructor from OpenPGP::Packet

Instance Attribute Details

#dataObject

Returns the value of attribute data.



387
388
389
# File 'lib/openpgp/packet.rb', line 387

def data
  @data
end

Class Method Details

.parse_body(body, options = {}) ⇒ Object



389
390
391
# File 'lib/openpgp/packet.rb', line 389

def self.parse_body(body, options = {})
  self.new({:data => body.read}.merge(options))
end

Instance Method Details

#write_body(buffer) ⇒ Object



393
394
395
# File 'lib/openpgp/packet.rb', line 393

def write_body(buffer)
  buffer.write(data)
end