Class: Yobi::Key
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- 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
Instance Method Details
#created ⇒ 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.
90 91 92 |
# File 'lib/yobi/repository/key.rb', line 90 def current? self["current"] end |
#host_name ⇒ String
85 86 87 |
# File 'lib/yobi/repository/key.rb', line 85 def host_name self["hostName"] end |
#id ⇒ String
75 76 77 |
# File 'lib/yobi/repository/key.rb', line 75 def id self["id"] end |
#user_name ⇒ String
80 81 82 |
# File 'lib/yobi/repository/key.rb', line 80 def user_name self["userName"] end |