Class: Freelancer::Models::Project

Inherits:
Object
  • Object
show all
Includes:
JSONMapper
Defined in:
lib/freelancer/models/project.rb

Instance Method Summary collapse

Instance Method Details

#jobsObject

Returns the list of jobs associated with the project. This method selects the “jobs_array” if it exists and has content, otherwise it returns the “jobs” array



115
116
117
118
# File 'lib/freelancer/models/project.rb', line 115

def jobs
  return self.jobs_array unless self.jobs_array.nil? || self.jobs_array.empty?
  return @jobs
end