Exception: AuthorizedKeys::BadKeyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/authorized_keys/key.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ BadKeyError

Returns a new instance of BadKeyError.



7
8
9
10
# File 'lib/authorized_keys/key.rb', line 7

def initialize(key)
  super("Bad key")
  self.key = key
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



5
6
7
# File 'lib/authorized_keys/key.rb', line 5

def key
  @key
end