Class: AocCli::Files::Config::Cookie
- Inherits:
-
Tools
- Object
- Tools
- AocCli::Files::Config::Cookie
show all
- Defined in:
- lib/aoc_cli/files.rb
Class Method Summary
collapse
Methods inherited from Tools
get_all, get_bool, get_line, is_set?, mod_line, set_line
Class Method Details
.key(user:) ⇒ Object
71
72
73
74
|
# File 'lib/aoc_cli/files.rb', line 71
def self.key(user:)
Validate.key(get_line(key:"cookie=>#{Validate
.user(user)}"))
end
|
.store(user:, key:) ⇒ Object
67
68
69
70
|
# File 'lib/aoc_cli/files.rb', line 67
def self.store(user:, key:)
set_line(key:"cookie=>#{Validate.set_user(user)}",
val:Validate.set_key(key))
end
|