
Security News
Researcher Exposes Zero-Day Clickjacking Vulnerabilities in Major Password Managers
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
You can store a collection within a specific key. The data must be an array of hashes with a keyword and an optional data argument. Keyword can be an array.
Briskly.store('cities').with([
{ keyword: ['London', 'Londres'], data: { id: 10, name: London } },
{ keyword: 'Berlin', data: { id: 15, name: Berlin } },
{ keyword: 'Barcelona', data: { id: 25, name: Barcelona } }
)]
Search on collections using #on
. The result is composed by an hash with the key(s) requested
and the values are instances of Briskly::Element
class. This object responds to #keyword
and #data
.
Briskly.store('cities').with([
{ keyword: ['London', 'Londres'], data: { id: 10, name: London } },
{ keyword: 'Berlin', data: { id: 15, name: Berlin } },
{ keyword: 'Barcelona', data: { id: 25, name: Barcelona } }
)]
result = Briskly.on('cities').search('lon')
result
=> { 'cities' => [ #Briskly::Element ... ]
result['cities'].first.keyword
=> 'London'
result = Briskly.on('cities').search('londres')
result['cities'].first.keyword
=> 'Londres'
Example with multiple collections
Briskly.store('cities').with([
{ keyword: 'Foo' },
...
)]
Briskly.store('countries').with([
{ keyword: 'Foobear' },
...
)]
result = Briskly.on('countries', 'cities').search('foo')
result
=> { 'cities' => [ #Briskly::Element ], 'countries' => [ #Briskly::Element ] }
Notes:
MIT licence. Copyright (c) 2013 HouseTrip Ltd.
FAQs
Unknown package
We found that briskly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.