module Ratsit
{“get_companies_response”:{
"get_companies_result":{ "ratsit_response_package":{ "retreived":"92", "total_matched":"92", "company":[
{
:get_person_information_package_response => {:get_person_information_package_result => {:ratsit_response_package => {:person_information_package => {}
{
:search_one_person_response => {:search_one_person_result => {:ratsit_response_package => {:person_search_result => {:hits => {:hit=>
{“search_persons_response”:
{"search_persons_result": {"ratsit_response_package": {"person_search_result": {"hits": {"hit": Array || Object
Constants
- VERSION
Public Class Methods
GetPersonInformationPackage(args=nil)
click to toggle source
# File lib/ratsit.rb, line 53 def Ratsit.GetPersonInformationPackage(args=nil) return Ratsit.doTokenRequest(Ratsit::Request::GetPersonInformationPackageRequest, args) end
SearchCompanies(args=nil)
click to toggle source
# File lib/ratsit.rb, line 41 def Ratsit.SearchCompanies(args=nil) return Ratsit.doTokenRequest(Ratsit::Request::GetCompaniesRequest, args) end
SearchOnePerson(args=nil)
click to toggle source
# File lib/ratsit.rb, line 45 def Ratsit.SearchOnePerson(args=nil) return Ratsit.doTokenRequest(Ratsit::Request::SearchOnePersonRequest, args) end
SearchPersons(args=nil)
click to toggle source
# File lib/ratsit.rb, line 49 def Ratsit.SearchPersons(args=nil) return Ratsit.doTokenRequest(Ratsit::Request::SearchPersonsRequest, args) end
doTokenRequest(req_class, filter_args)
click to toggle source
# File lib/ratsit.rb, line 34 def Ratsit.doTokenRequest(req_class, filter_args) req = req_class.new(filter_args) puts req req.exec() return req.response end
get_api_key()
click to toggle source
# File lib/ratsit.rb, line 26 def Ratsit.get_api_key key_key = 'RATSIT_API_KEY' if ENV[key_key].nil? raise RatsitError, 'No api key specified' end return ENV[key_key] end