Sha256: ecd4ad0a8a01c89d0e84a13d1dd77a827658ccd581c383c9ee5c931b556c238d
Contents?: true
Size: 1.74 KB
Versions: 2
Compression:
Stored size: 1.74 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 if block_given? 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hawatel_search_jobs-0.2.1 | lib/hawatel_search_jobs.rb |
hawatel_search_jobs-0.1.3 | lib/hawatel_search_jobs.rb |