Class: Spear::Structure::Job::EmbededClass::CbJob

Inherits:
Object
  • Object
show all
Defined in:
lib/spear/structure/job/embeded_class.rb

Overview

Resume embeded class

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject

Returns the value of attribute city.



9
10
11
# File 'lib/spear/structure/job/embeded_class.rb', line 9

def city
  @city
end

#didObject

Returns the value of attribute did.



9
10
11
# File 'lib/spear/structure/job/embeded_class.rb', line 9

def did
  @did
end

#employment_typeObject

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_titleObject

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_dateObject

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

#stateObject

Returns the value of attribute state.



9
10
11
# File 'lib/spear/structure/job/embeded_class.rb', line 9

def state
  @state
end

#tn_didObject

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