Class: Job
- Inherits:
-
Object
- Object
- Job
- Defined in:
- lib/deedveloper/job.rb
Constant Summary collapse
- @@all =
[]
Instance Attribute Summary collapse
-
#company ⇒ Object
Returns the value of attribute company.
-
#description ⇒ Object
Returns the value of attribute description.
-
#job_url ⇒ Object
Returns the value of attribute job_url.
-
#location ⇒ Object
Returns the value of attribute location.
-
#salary ⇒ Object
Returns the value of attribute salary.
-
#title ⇒ Object
Returns the value of attribute title.
-
#when_posted ⇒ Object
Returns the value of attribute when_posted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize ⇒ Job
Returns a new instance of Job.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/deedveloper/job.rb', line 6 def initialize @title = title @company = company @location = location @when_posted = when_posted @job_url = job_url @salary = salary @description = description @@all << self end |
Instance Attribute Details
#company ⇒ Object
Returns the value of attribute company.
2 3 4 |
# File 'lib/deedveloper/job.rb', line 2 def company @company end |
#description ⇒ Object
Returns the value of attribute description.
2 3 4 |
# File 'lib/deedveloper/job.rb', line 2 def description @description end |
#job_url ⇒ Object
Returns the value of attribute job_url.
2 3 4 |
# File 'lib/deedveloper/job.rb', line 2 def job_url @job_url end |
#location ⇒ Object
Returns the value of attribute location.
2 3 4 |
# File 'lib/deedveloper/job.rb', line 2 def location @location end |
#salary ⇒ Object
Returns the value of attribute salary.
2 3 4 |
# File 'lib/deedveloper/job.rb', line 2 def salary @salary end |
#title ⇒ Object
Returns the value of attribute title.
2 3 4 |
# File 'lib/deedveloper/job.rb', line 2 def title @title end |
#when_posted ⇒ Object
Returns the value of attribute when_posted.
2 3 4 |
# File 'lib/deedveloper/job.rb', line 2 def when_posted @when_posted end |
Class Method Details
.all ⇒ Object
17 18 19 |
# File 'lib/deedveloper/job.rb', line 17 def self.all @@all end |