class Sshhub::Key

Attributes

id[RW]
key[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/sshhub/key.rb, line 4
def initialize(options = {})
  @id  = options[:id]
  @key = options[:key]
end

Public Instance Methods

abridged() click to toggle source
# File lib/sshhub/key.rb, line 9
def abridged
  "#{key[0..15]} ... #{key[(key.length - 15)..-1]}"
end
to_s() click to toggle source
# File lib/sshhub/key.rb, line 13
def to_s
  key
end