Class: OpenPGP::Packet::Trust

Inherits:
  • Object
show all
Defined in:
lib/openpgp/packet.rb

Overview

OpenPGP Trust packet (tag 12).

See Also:

Instance Attribute Summary (collapse)

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from

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

Constructor Details

This class inherits a constructor from OpenPGP::Packet

Instance Attribute Details

- (Object) data

Returns the value of attribute data



407
408
409
# File 'lib/openpgp/packet.rb', line 407

def data
  @data
end

Class Method Details

+ (Object) parse_body(body, options = {})



409
410
411
# File 'lib/openpgp/packet.rb', line 409

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

Instance Method Details

- (Object) write_body(buffer)



413
414
415
# File 'lib/openpgp/packet.rb', line 413

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