Class: ResumeCopilot::Job
- Inherits:
-
Object
- Object
- ResumeCopilot::Job
- Defined in:
- lib/resume_copilot/job.rb
Instance Attribute Summary collapse
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#created ⇒ Object
Returns the value of attribute created.
-
#feed ⇒ Object
Returns the value of attribute feed.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, companyName:, location:, feed:, id:, created:) ⇒ Job
constructor
A new instance of Job.
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_name ⇒ Object
Returns the value of attribute company_name.
5 6 7 |
# File 'lib/resume_copilot/job.rb', line 5 def company_name @company_name end |
#created ⇒ Object
Returns the value of attribute created.
5 6 7 |
# File 'lib/resume_copilot/job.rb', line 5 def created @created end |
#feed ⇒ Object
Returns the value of attribute feed.
5 6 7 |
# File 'lib/resume_copilot/job.rb', line 5 def feed @feed end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/resume_copilot/job.rb', line 5 def id @id end |
#location ⇒ Object
Returns the value of attribute location.
5 6 7 |
# File 'lib/resume_copilot/job.rb', line 5 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/resume_copilot/job.rb', line 5 def name @name end |