Class: CyberplatPKI::KeyId

Inherits:
Object
  • Object
show all
Defined in:
lib/cyberplat_pki/key_id.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

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_serialObject

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