Class: CyberplatPKI::KeyId
- Inherits:
-
Object
- Object
- CyberplatPKI::KeyId
- Defined in:
- lib/cyberplat_pki/key_id.rb
Instance Attribute Summary collapse
-
#key_name ⇒ Object
Returns the value of attribute key_name.
-
#key_serial ⇒ Object
Returns the value of attribute key_serial.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(key_name = nil, key_serial = nil) ⇒ KeyId
constructor
A new instance of KeyId.
Constructor Details
#initialize(key_name = nil, key_serial = nil) ⇒ KeyId
Returns a new instance of KeyId.
5 6 7 8 |
# File 'lib/cyberplat_pki/key_id.rb', line 5 def initialize(key_name = nil, key_serial = nil) @key_name = key_name @key_serial = key_serial end |
Instance Attribute Details
#key_name ⇒ Object
Returns the value of attribute key_name.
3 4 5 |
# File 'lib/cyberplat_pki/key_id.rb', line 3 def key_name @key_name end |
#key_serial ⇒ Object
Returns the value of attribute key_serial.
3 4 5 |
# File 'lib/cyberplat_pki/key_id.rb', line 3 def key_serial @key_serial end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/cyberplat_pki/key_id.rb', line 10 def ==(other) key_name == other.key_name && key_serial == other.key_serial end |