class Passwordstate::Resources::Folder

Public Instance Methods

full_path(unix = false) click to toggle source
# File lib/passwordstate/resources/folder.rb, line 31
def full_path(unix = false)
  return tree_path.tr('\\', '/') if unix

  tree_path
end
password_lists() click to toggle source
# File lib/passwordstate/resources/folder.rb, line 18
def password_lists
  Passwordstate::ResourceList.new client, Passwordstate::Resources::PasswordList,
                                  search_query: { tree_path: tree_path },
                                  all_path: 'searchpasswordlists',
                                  all_query: { tree_path: tree_path },
                                  object_data: { nest_undef_folder_id: folder_id }
end
permissions() click to toggle source
# File lib/passwordstate/resources/folder.rb, line 26
def permissions
  client.require_version('>= 8.4.8449')
  FolderPermission.new(_client: client, folder_id: folder_id)
end