Sha256: 0a16a92a7763676bbd6721fc02e34ceb5354c4475f0309da70fbe8267b2e35e0

Contents?: true

Size: 371 Bytes

Versions: 2

Compression:

Stored size: 371 Bytes

Contents

module BlockScore
  class Watchlist
    def initialize(client)
      @client = client
    end
    # POST https://api.blockscore.com/watchlists
    def search(watchlist_candidate_id, match_type = nil)
      body = {}
      body[:watchlist_candidate_id] = watchlist_candidate_id
      body[:match_type] = match_type

      @client.post '/watchlists', body
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blockscore-3.0.1 lib/blockscore/watchlist.rb
blockscore-3.0.0 lib/blockscore/watchlist.rb