Class: CyberplatPKI::TrustPacket
- Defined in:
- lib/cyberplat_pki/trust_packet.rb
Instance Attribute Summary collapse
-
#trust ⇒ Object
Returns the value of attribute trust.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(trust = nil) ⇒ TrustPacket
constructor
A new instance of TrustPacket.
- #save(io, context) ⇒ Object
Methods inherited from Packet
Constructor Details
#initialize(trust = nil) ⇒ TrustPacket
Returns a new instance of TrustPacket.
5 6 7 |
# File 'lib/cyberplat_pki/trust_packet.rb', line 5 def initialize(trust = nil) @trust = trust end |
Instance Attribute Details
#trust ⇒ Object
Returns the value of attribute trust.
3 4 5 |
# File 'lib/cyberplat_pki/trust_packet.rb', line 3 def trust @trust end |
Class Method Details
.load(io, context) ⇒ Object
9 10 11 |
# File 'lib/cyberplat_pki/trust_packet.rb', line 9 def self.load(io, context) new io.read end |
Instance Method Details
#save(io, context) ⇒ Object
13 14 15 |
# File 'lib/cyberplat_pki/trust_packet.rb', line 13 def save(io, context) io.write @trust end |