Class: BlockScore::Watchlists

Inherits:
Object
  • Object
show all
Defined in:
lib/blockscore/watchlists.rb

Constant Summary collapse

PATH =
'/watchlists'

Instance Method Summary collapse

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