class Elance::Job

Public Instance Methods

all(*params) { |response| ... } click to toggle source

GET /jobs

# File lib/elance/job.rb, line 8
def all(*params, &block)
  options = {:query => {}}
  options[:query] = params[0] if params.length > 0
  response = self.class.get '/jobs', options
  yield(response) if block_given?
  response
end
find(job_id) { |response| ... } click to toggle source

GET /job/job-id

# File lib/elance/job.rb, line 26
def find(job_id, &block)
  response = self.class.get "/jobs/#{job_id}", options
  yield(response) if block_given?
  response
end
my(*params) { |response| ... } click to toggle source

GET /jobs/my

# File lib/elance/job.rb, line 17
def my(*params, &block)
  options = {:query => {}}
  options[:query] = params[0] if params.length > 0
  response = self.class.get '/jobs/my', options
  yield(response) if block_given?
  response
end
proposals(job_id) { |response| ... } click to toggle source

GET /job/job-id/proposals

# File lib/elance/job.rb, line 33
def proposals(job_id, &block)
  response = self.class.get "/jobs/#{job_id}/proposals", options
  yield(response) if block_given?
  response
end