Class: Yobi::Key

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/yobi/repository/key.rb,
sig/yobi.rbs

Overview

One key (password) associated with the repository, from Repository#key_list.

Instance Method Summary collapse

Instance Method Details

#createdTime

Returns:

  • (Time)


95
96
97
# File 'lib/yobi/repository/key.rb', line 95

def created
  @created ||= Time.parse(self["created"])
end

#current?Boolean

Returns whether this is the key currently in use.

Returns:

  • (Boolean)

    whether this is the key currently in use



90
91
92
# File 'lib/yobi/repository/key.rb', line 90

def current?
  self["current"]
end

#host_nameString

Returns:

  • (String)


85
86
87
# File 'lib/yobi/repository/key.rb', line 85

def host_name
  self["hostName"]
end

#idString

Returns:

  • (String)


75
76
77
# File 'lib/yobi/repository/key.rb', line 75

def id
  self["id"]
end

#user_nameString

Returns:

  • (String)


80
81
82
# File 'lib/yobi/repository/key.rb', line 80

def user_name
  self["userName"]
end