Class: ResumeCopilot::Job

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, companyName:, location:, feed:, id:, created:) ⇒ Job

Returns a new instance of Job.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/resume_copilot/job.rb', line 7

def initialize(name:, companyName:, location:, feed:, id:, created:)
  @name = name
  @company_name = companyName
  @location = location ? JobLocation.new(
    city: location[:city],
    state: location[:state],
    country: location[:country],
    loc: location[:loc]
  ) : nil
  @feed = feed
  @id = id
  @created = created
end

Instance Attribute Details

#company_nameObject

Returns the value of attribute company_name.



5
6
7
# File 'lib/resume_copilot/job.rb', line 5

def company_name
  @company_name
end

#createdObject

Returns the value of attribute created.



5
6
7
# File 'lib/resume_copilot/job.rb', line 5

def created
  @created
end

#feedObject

Returns the value of attribute feed.



5
6
7
# File 'lib/resume_copilot/job.rb', line 5

def feed
  @feed
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/resume_copilot/job.rb', line 5

def id
  @id
end

#locationObject

Returns the value of attribute location.



5
6
7
# File 'lib/resume_copilot/job.rb', line 5

def location
  @location
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/resume_copilot/job.rb', line 5

def name
  @name
end