class ConsolidatedScreeningList::Client

Attributes

api_key[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/consolidated_screening_list/client.rb, line 11
def initialize(options = {})
  @api_key = options[:api_key] || ENV["TRADE_API_KEY"]
end

Public Instance Methods

Private Instance Methods

parse_response(response) click to toggle source
# File lib/consolidated_screening_list/client.rb, line 21
def parse_response(response)
  JSON.parse(response)["results"].map { |data| Result.new(data) }
end