Class: Passwordstate::Resources::PasswordList
- Inherits:
-
Passwordstate::Resource
- Object
- Passwordstate::Resource
- Passwordstate::Resources::PasswordList
- Defined in:
- lib/passwordstate/resources/password_list.rb
Instance Attribute Summary
Attributes inherited from Passwordstate::Resource
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Passwordstate::Resource
all, api_path, #api_path, #attributes, #delete, delete, #get, get, index_field, #initialize, #inspect, passwordstate_to_ruby_field, passwordstateify_hash, post, #post, put, #put, ruby_to_passwordstate_field, #stored?
Constructor Details
This class inherits a constructor from Passwordstate::Resource
Class Method Details
.search(client, query = {}) ⇒ Object
49 50 51 |
# File 'lib/passwordstate/resources/password_list.rb', line 49 def self.search(client, query = {}) super client, query.merge(_api_path: 'searchpasswordlists') end |
Instance Method Details
#passwords ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/passwordstate/resources/password_list.rb', line 41 def passwords Passwordstate::ResourceList.new client, Passwordstate::Resources::Password, 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 |