Class: Restic::Service::SSHKeys::PublicKey

Inherits:
Struct
  • Object
show all
Defined in:
lib/restic/service/ssh_keys.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hashObject

Returns the value of attribute hash

Returns:

  • (Object)

    the current value of hash



9
10
11
# File 'lib/restic/service/ssh_keys.rb', line 9

def hash
  @hash
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



9
10
11
# File 'lib/restic/service/ssh_keys.rb', line 9

def type
  @type
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
13
# File 'lib/restic/service/ssh_keys.rb', line 10

def ==(other)
    other.type == type &&
        other.hash == hash
end