Skip to content

Commit

Permalink
Merge f65c175 into d2f48e6
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaron committed Apr 12, 2018
2 parents d2f48e6 + f65c175 commit 4093e23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ User methods
user.widget_id
```

Filtering Results

Our API returns a JSON list of items, this result can be filtered using a `where` method matching a specified criteria (or matching using regular expressions):

```ruby
document = Mifiel::Document.find('id')
document.signers.where(field: /receiver|issuer/, email: 'some@email.com')
```

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion mifiel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
else
spec.add_runtime_dependency 'activesupport', '< 5.0.0'
end
spec.add_runtime_dependency 'flexirest', '~> 1.3.35'
spec.add_runtime_dependency 'flexirest', '~> 1.6.6'

spec.add_development_dependency 'bump', '~> 0.5', '>= 0.5.3'
spec.add_development_dependency 'bundler', '~> 1.6'
Expand Down

0 comments on commit 4093e23

Please sign in to comment.