vendor/bundle/ruby/2.3.0/gems/freelancer-0.1.1/lib/freelancer/api/job.rb
# Retrieve a list of the current users jobs
Retrieve a list of the current users jobs
Retrieve a list of the current users jobs
def my_jobs
          result = api_get("/Job/getMyJobList.json")
          json_result = JSONMapper::Parser.parse(result)
          jobs = []
          unless json_result.nil?
            json_result[:"json-result"][:items][:job].each do |item|
              jobs << { :id => item }
            end
          end
          ::Freelancer::Models::Job.parse_json_collection(jobs)
        end
def my_jobs result = api_get ( "/Job/getMyJobList.json" ) json_result = JSONMapper :: Parser . parse ( result ) jobs = [ ] unless json_result . nil? json_result [ :" json-result " ] [ :items ] [ :job ] . each do | item | jobs << { :id => item } end end :: Freelancer :: Models :: Job . parse_json_collection ( jobs ) end
Retrieve a list of the current users jobs
Retrieve a list of the current users jobs
# We need to hack this to make the job id a sub element of the # job node to make the mapping work properly.