Class: Freelancer::Models::Project
- Inherits:
-
Object
- Object
- Freelancer::Models::Project
- Includes:
- JSONMapper
- Defined in:
- lib/freelancer/models/project.rb
Instance Method Summary collapse
-
#jobs ⇒ Object
Returns the list of jobs associated with the project.
Instance Method Details
#jobs ⇒ Object
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 |