Class: Lastpass::Collection

Inherits:
Object
  • Object
show all
Defined in:
lib/lastpass-api/collection.rb

Direct Known Subclasses

Accounts, Groups

Instance Method Summary collapse

Instance Method Details

#find(search_text, with_password: false) ⇒ Object



4
5
6
# File 'lib/lastpass-api/collection.rb', line 4

def find( search_text, with_password: false )
  show( search_text, with_passwords: with_password )&.first
end

#find_all(search_text = '.*', with_passwords: false) ⇒ Object



8
9
10
# File 'lib/lastpass-api/collection.rb', line 8

def find_all( search_text = '.*', with_passwords: false )
  show( search_text, with_passwords: with_passwords, regex: true ) || []
end