Class: OpenPGP::Packet::EncryptedData
- Inherits:
-
OpenPGP::Packet
- Object
- OpenPGP::Packet
- OpenPGP::Packet::EncryptedData
- Defined in:
- lib/openpgp/packet.rb
Overview
OpenPGP Symmetrically Encrypted Data packet (tag 9).
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
-
#initialize(options = {}, &block) ⇒ EncryptedData
constructor
A new instance of EncryptedData.
- #write_body(buffer) ⇒ Object
Methods inherited from OpenPGP::Packet
#body, for, parse, parse_new_format, parse_old_format, tag
Constructor Details
#initialize(options = {}, &block) ⇒ EncryptedData
Returns a new instance of EncryptedData.
325 326 327 |
# File 'lib/openpgp/packet.rb', line 325 def initialize( = {}, &block) super(, &block) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
319 320 321 |
# File 'lib/openpgp/packet.rb', line 319 def data @data end |
Class Method Details
.parse_body(body, options = {}) ⇒ Object
321 322 323 |
# File 'lib/openpgp/packet.rb', line 321 def self.parse_body(body, = {}) self.new({:data => body.read}.merge()) end |
Instance Method Details
#write_body(buffer) ⇒ Object
329 330 331 |
# File 'lib/openpgp/packet.rb', line 329 def write_body(buffer) buffer.write(data) end |