Class: Spear::Structure::Job::EmbededClass::CbJob
- Inherits:
-
Object
- Object
- Spear::Structure::Job::EmbededClass::CbJob
- Defined in:
- lib/spear/structure/job/embeded_class.rb
Overview
Resume embeded class
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#did ⇒ Object
Returns the value of attribute did.
-
#employment_type ⇒ Object
Returns the value of attribute employment_type.
-
#job_title ⇒ Object
Returns the value of attribute job_title.
-
#posted_date ⇒ Object
Returns the value of attribute posted_date.
-
#state ⇒ Object
Returns the value of attribute state.
-
#tn_did ⇒ Object
Returns the value of attribute tn_did.
Instance Method Summary collapse
-
#initialize(tn_did, job = {}) ⇒ CbJob
constructor
A new instance of CbJob.
Constructor Details
#initialize(tn_did, job = {}) ⇒ CbJob
Returns a new instance of CbJob.
11 12 13 14 15 16 17 18 19 |
# File 'lib/spear/structure/job/embeded_class.rb', line 11 def initialize(tn_did, job={}) @did = job['DID'] @tn_did = tn_did @job_title = job['JobTitle'] @state = job['State'] @city = job['City'] @posted_date = Date.strptime(job['PostedDate'], '%m/%d/%Y').to_time.strftime('%Y-%m-%d') @employment_type = job['EmploymentType'] end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
9 10 11 |
# File 'lib/spear/structure/job/embeded_class.rb', line 9 def city @city end |
#did ⇒ Object
Returns the value of attribute did.
9 10 11 |
# File 'lib/spear/structure/job/embeded_class.rb', line 9 def did @did end |
#employment_type ⇒ Object
Returns the value of attribute employment_type.
9 10 11 |
# File 'lib/spear/structure/job/embeded_class.rb', line 9 def employment_type @employment_type end |
#job_title ⇒ Object
Returns the value of attribute job_title.
9 10 11 |
# File 'lib/spear/structure/job/embeded_class.rb', line 9 def job_title @job_title end |
#posted_date ⇒ Object
Returns the value of attribute posted_date.
9 10 11 |
# File 'lib/spear/structure/job/embeded_class.rb', line 9 def posted_date @posted_date end |
#state ⇒ Object
Returns the value of attribute state.
9 10 11 |
# File 'lib/spear/structure/job/embeded_class.rb', line 9 def state @state end |
#tn_did ⇒ Object
Returns the value of attribute tn_did.
9 10 11 |
# File 'lib/spear/structure/job/embeded_class.rb', line 9 def tn_did @tn_did end |