class Spear::Structure::Job::EmbededClass::CbJob

Resume embeded class

Attributes

city[RW]
did[RW]
employment_type[RW]
job_title[RW]
posted_date[RW]
state[RW]
tn_did[RW]

Public Class Methods

new(tn_did, job={}) click to toggle source
# 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