Class: Yobi::Key
- 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
- #created ⇒ Time
-
#current? ⇒ Boolean
Whether this is the key currently in use.
- #host_name ⇒ String
- #id ⇒ String
- #user_name ⇒ String
Methods inherited from FancyHash
#initialize, #inspect, #pretty_print
Constructor Details
This class inherits a constructor from Yobi::FancyHash
Instance Method Details
#created ⇒ Time
131 132 133 |
# File 'lib/yobi/repository/key.rb', line 131 def created @created ||= Time.parse(self["created"]) end |
#current? ⇒ Boolean
Returns whether this is the key currently in use.
126 127 128 |
# File 'lib/yobi/repository/key.rb', line 126 def current? self["current"] end |
#host_name ⇒ String
121 122 123 |
# File 'lib/yobi/repository/key.rb', line 121 def host_name self["hostName"] end |
#id ⇒ String
111 112 113 |
# File 'lib/yobi/repository/key.rb', line 111 def id self["id"] end |
#user_name ⇒ String
116 117 118 |
# File 'lib/yobi/repository/key.rb', line 116 def user_name self["userName"] end |