module Pipl::Default

Constants

API_ENDPOINT
USER_AGENT

Public Class Methods

api_endpoint() click to toggle source
# File lib/pipl/default.rb, line 56
def api_endpoint
  ENV.fetch 'PIPL_API_ENDPOINT', API_ENDPOINT
end
api_key() click to toggle source
# File lib/pipl/default.rb, line 16
def api_key
  ENV['PIPL_API_KEY']
end
hide_sponsored() click to toggle source
# File lib/pipl/default.rb, line 28
def hide_sponsored
  ENV['PIPL_HIDE_SPONSORED']
end
infer_persons() click to toggle source
# File lib/pipl/default.rb, line 48
def infer_persons
  ENV['PIPL_INFER_PERSONS']
end
live_feeds() click to toggle source
# File lib/pipl/default.rb, line 32
def live_feeds
  ENV['PIPL_LIVE_FEEDS']
end
match_requirements() click to toggle source
# File lib/pipl/default.rb, line 40
def match_requirements
  ENV['PIPL_MATCH_REQUIREMENTS']
end
minimum_match() click to toggle source
# File lib/pipl/default.rb, line 24
def minimum_match
  ENV['PIPL_MINIMUM_MATCH']
end
minimum_probability() click to toggle source
# File lib/pipl/default.rb, line 20
def minimum_probability
  ENV['PIPL_MINIMUM_PROBABILITY']
end
options() click to toggle source
# File lib/pipl/default.rb, line 12
def options
  Hash[Pipl::Configurable.keys.map{|key| [key, send(key)]}]
end
show_sources() click to toggle source
# File lib/pipl/default.rb, line 36
def show_sources
  ENV['PIPL_SHOW_SOURCES']
end
source_category_requirements() click to toggle source
# File lib/pipl/default.rb, line 44
def source_category_requirements
  ENV['PIPL_SOURCE_CATEGORY_REQUIREMENTS']
end
strict_validation() click to toggle source
# File lib/pipl/default.rb, line 52
def strict_validation
  ENV['PIPL_USER_STRICT_VALIDATION']
end
user_agent() click to toggle source
# File lib/pipl/default.rb, line 60
def user_agent
  ENV.fetch 'PIPL_USER_AGENT', USER_AGENT
end