Class: Passwordstate::Resources::PasswordList::HideConfig
- Inherits:
-
Struct
- Object
- Struct
- Passwordstate::Resources::PasswordList::HideConfig
- Defined in:
- lib/passwordstate/resources/password_list.rb
Instance Attribute Summary collapse
-
#admin ⇒ Object
Returns the value of attribute admin.
-
#modify ⇒ Object
Returns the value of attribute modify.
-
#view ⇒ Object
Returns the value of attribute view.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#admin ⇒ Object
Returns the value of attribute admin
6 7 8 |
# File 'lib/passwordstate/resources/password_list.rb', line 6 def admin @admin end |
#modify ⇒ Object
Returns the value of attribute modify
6 7 8 |
# File 'lib/passwordstate/resources/password_list.rb', line 6 def modify @modify end |
#view ⇒ Object
Returns the value of attribute view
6 7 8 |
# File 'lib/passwordstate/resources/password_list.rb', line 6 def view @view end |
Class Method Details
.parse(str) ⇒ Object
7 8 9 10 11 |
# File 'lib/passwordstate/resources/password_list.rb', line 7 def self.parse(str) view, modify, admin = str.split(':').map { |b| b.to_s.downcase == 'true' } new view, modify, admin end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/passwordstate/resources/password_list.rb', line 13 def to_s "#{view}:#{modify}:#{admin}" end |