Sha256: 40831bd6c0423d7e88f85220426f97020667a7f143288e16e82e289c38ee5c69
Contents?: true
Size: 1.73 KB
Versions: 1
Compression:
Stored size: 1.73 KB
Contents
## # = Hawatel Search Jobs # More details how to use it was described here {HawatelSearchJobs::Client} module HawatelSearchJobs require 'hawatel_search_jobs/helpers' require 'hawatel_search_jobs/api' require 'hawatel_search_jobs/client' class << self attr_accessor :indeed, :xing, :reed, :careerbuilder, :careerjet ## # How to configure APIs go to example {HawatelSearchJobs::Client#search_jobs} def configure @indeed = default_indeed(Hash.new) @xing = default_xing(Hash.new) @reed = default_reed(Hash.new) @careerbuilder = default_careerbuilder(Hash.new) @careerjet = default_careerjet(Hash.new) yield self true end private def default_xing(settings) settings[:activated] = false settings[:consumer_key] = '' settings[:consumer_secret] = '' settings[:oauth_token] = '' settings[:oauth_token_secret] = '' return settings end def default_indeed(settings) settings[:activated] = false settings[:api] = 'api.indeed.com' settings[:version] = '2' settings[:publisher] = '' return settings end def default_careerjet(settings) settings[:activated] = false settings[:api] = 'public.api.careerjet.net' return settings end def default_reed(settings) settings[:activated] = false settings[:api] = 'reed.co.uk/api' settings[:version] = '1.0' return settings end def default_careerbuilder(settings) settings[:activated] = false settings[:api] = 'api.careerbuilder.com' settings[:version] = 'v2' return settings end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hawatel_search_jobs-0.1.0 | lib/hawatel_search_jobs.rb |