Class: Job

Inherits:
Object
  • Object
show all
Defined in:
lib/deedveloper/job.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJob

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

#companyObject

Returns the value of attribute company.



2
3
4
# File 'lib/deedveloper/job.rb', line 2

def company
  @company
end

#descriptionObject

Returns the value of attribute description.



2
3
4
# File 'lib/deedveloper/job.rb', line 2

def description
  @description
end

#job_urlObject

Returns the value of attribute job_url.



2
3
4
# File 'lib/deedveloper/job.rb', line 2

def job_url
  @job_url
end

#locationObject

Returns the value of attribute location.



2
3
4
# File 'lib/deedveloper/job.rb', line 2

def location
  @location
end

#salaryObject

Returns the value of attribute salary.



2
3
4
# File 'lib/deedveloper/job.rb', line 2

def salary
  @salary
end

#titleObject

Returns the value of attribute title.



2
3
4
# File 'lib/deedveloper/job.rb', line 2

def title
  @title
end

#when_postedObject

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

.allObject



17
18
19
# File 'lib/deedveloper/job.rb', line 17

def self.all
    @@all
end