Class: OpenPGP::Packet::Trust
- Inherits:
-
OpenPGP::Packet
- Object
- OpenPGP::Packet
- OpenPGP::Packet::Trust
- Defined in:
- lib/openpgp/packet.rb
Overview
OpenPGP Trust packet (tag 12).
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Attributes inherited from OpenPGP::Packet
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
#data ⇒ Object
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, = {}) self.new({:data => body.read}.merge()) 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 |