class Stackable

Public Instance Methods

all_companies() click to toggle source
# File lib/stackable.rb, line 25
def all_companies
      get('http://stackable.herokuapp.com/api/companies')
      end
all_jobs() click to toggle source
# File lib/stackable.rb, line 12
      def all_jobs
              get('http://stackable.herokuapp.com/api/jobs')
end
companies_by_benefits(benefits=[]) click to toggle source
# File lib/stackable.rb, line 50
def companies_by_benefits(benefits=[])
        params = benefits.join('&')
        get("http://stackable.herokuapp.com/api/companies/benefits/#{params}")
end
get(url) click to toggle source
# File lib/stackable.rb, line 7
def get(url)
        response = HTTParty.get(url)
        JSON.parse(response.body)
end
get_companies_by_tags(tags=[]) click to toggle source
# File lib/stackable.rb, line 33
def get_companies_by_tags(tags=[])
        params = tags.join('&')
        get("http://stackable.herokuapp.com/api/companies/tags/#{params}")
end
get_company(company_id) click to toggle source
# File lib/stackable.rb, line 29
def get_company(company_id)
        get("http://stackable.herokuapp.com/api/companies/#{company_id}")
end
get_job(job_id) click to toggle source
# File lib/stackable.rb, line 16
def get_job(job_id)
        get("http://stackable.herokuapp.com/api/jobs/#{job_id}")
end
get_jobs_by_tags(tags=[]) click to toggle source
# File lib/stackable.rb, line 20
def get_jobs_by_tags(tags=[])
        params = tags.join('&')
        get("http://stackable.herokuapp.com/api/jobs/tags/#{params}")
end
jobs_by_location(location) click to toggle source
# File lib/stackable.rb, line 55
def jobs_by_location(location)
        params = location
        get("http://stackable.herokuapp.com/api/jobs/location/#{params}")
end
relocation_offered?() click to toggle source
# File lib/stackable.rb, line 38
def relocation_offered?
        get("http://stackable.herokuapp.com/api/relocation")  
end
remote_working?() click to toggle source
# File lib/stackable.rb, line 42
def remote_working?
        get("http://stackable.herokuapp.com/api/remote")
end
senior() click to toggle source
# File lib/stackable.rb, line 46
def senior
        get("http://stackable.herokuapp.com/api/senior")
end