class G5::Jobbing::JobRetriever
Attributes
location_setting_urns[RW]
Public Class Methods
new(params={})
click to toggle source
# File lib/g5/jobbing/job_retriever.rb, line 5 def initialize(params={}) self.location_setting_urns = params[:location_setting_urns] end
Public Instance Methods
jobs_url_for_locations()
click to toggle source
# File lib/g5/jobbing/job_retriever.rb, line 13 def jobs_url_for_locations "#{jobs_base_url}?current=true&location_setting_urn=#{locations_as_parameter}" end
locations_as_parameter()
click to toggle source
# File lib/g5/jobbing/job_retriever.rb, line 17 def locations_as_parameter "[#{self.location_setting_urns.join(',')}]" end
perform()
click to toggle source
# File lib/g5/jobbing/job_retriever.rb, line 9 def perform fetch_get jobs_url_for_locations end