Class: BlockScore::Watchlists
- Inherits:
-
Object
- Object
- BlockScore::Watchlists
- Defined in:
- lib/blockscore/watchlists.rb
Constant Summary collapse
- PATH =
'/watchlists'
Instance Method Summary collapse
-
#initialize(client) ⇒ Watchlists
constructor
A new instance of Watchlists.
- #search(candidate_id, match_type = nil) ⇒ Object
Constructor Details
#initialize(client) ⇒ Watchlists
Returns a new instance of Watchlists.
5 6 7 |
# File 'lib/blockscore/watchlists.rb', line 5 def initialize(client) @client = client end |
Instance Method Details
#search(candidate_id, match_type = nil) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/blockscore/watchlists.rb', line 10 def search(candidate_id, match_type = nil) body = {} body[:candidate_id] = candidate_id body[:match_type] = match_type @client.post PATH, body end |