Class: Passwordstate::Resources::PasswordList
Defined Under Namespace
Classes: HideConfig
Instance Attribute Summary
#client
Class Method Summary
collapse
Instance Method Summary
collapse
acceptable_methods, all, api_path, #attributes, available?, #delete, delete, get, #get, index_field, #initialize, nil_as_string, passwordstate_to_ruby_field, passwordstateify_hash, post, #post, #pretty_print, put, #put, ruby_to_passwordstate_field, #stored?
Class Method Details
.search(client, **query) ⇒ Object
72
73
74
|
# File 'lib/passwordstate/resources/password_list.rb', line 72
def self.search(client, **query)
super client, **query.merge(_api_path: 'searchpasswordlists')
end
|
Instance Method Details
#full_path(unix: false) ⇒ Object
90
91
92
93
94
95
96
97
|
# File 'lib/passwordstate/resources/password_list.rb', line 90
def full_path(unix: false)
path = [tree_path]
path << password_list unless tree_path.end_with? password_list
path.compact.join('\\').tap do |full|
full.tr!('\\', '/') if unix
end
end
|
#passwords ⇒ Object
76
77
78
79
80
81
82
83
|
# File 'lib/passwordstate/resources/password_list.rb', line 76
def passwords
Passwordstate::ResourceList.new Passwordstate::Resources::Password,
client: client,
all_path: "passwords/#{password_list_id}",
all_query: { query_all: nil },
search_path: "searchpasswords/#{password_list_id}",
object_data: { password_list_id: password_list_id }
end
|
#permissions ⇒ Object
85
86
87
88
|
# File 'lib/passwordstate/resources/password_list.rb', line 85
def permissions
client.require_version('>= 8.4.8449')
PasswordListPermission.new(_client: client, password_list_id: password_list_id)
end
|