Class: Cb::CbSavedSearch::CbSavedSearchParameters

Inherits:
Object
  • Object
show all
Defined in:
lib/cb/models/cb_saved_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ CbSavedSearchParameters

Returns a new instance of CbSavedSearchParameters.



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/cb/models/cb_saved_search.rb', line 62

def initialize(args = {})
    @boolean_operator           = args['BooleanOperator'] || ''
    @category                   = args['Category'] || ''
    @education_code             = args['EducationCode'] || ''
    @emp_type                   = args['EmpType'] || ''
    @exclude_company_names      = args['ExcludeCompanyNames'] || ''
    @exclude_job_titles         = args['ExcludeJobTitles'] || ''
    @exclude_keywords           = args['ExcludeKeywords'] || ''
    @exclude_national           = args['ExcludeNational'] || false
    @industry_codes             = args['IndustryCodes'] || ''
    @job_title                  = args['Jobtitle'] || ''
    @keywords                   = args['Keywords'] || ''
    @location                   = args['Location'] || ''
    @order_by                   = args['OrderBy'] || ''
    @order_direction            = args['OrderDirection'] || ''
    @pay_high                   = args['PayHigh'] || 0
    @pay_info_only              = args['PayInfoOnly'] || false
    @pay_low                    = args['PayLow'] ||  0
    @posted_within              = args['PostedWithin'] || 30
    @radius                     = args['Radius'] || 30
    @specific_education         = args['SpecificEducation'] || false
end

Instance Attribute Details

#boolean_operatorObject

Returns the value of attribute boolean_operator.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def boolean_operator
  @boolean_operator
end

#categoryObject

Returns the value of attribute category.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def category
  @category
end

#education_codeObject

Returns the value of attribute education_code.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def education_code
  @education_code
end

#emp_typeObject

Returns the value of attribute emp_type.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def emp_type
  @emp_type
end

#exclude_company_namesObject

Returns the value of attribute exclude_company_names.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def exclude_company_names
  @exclude_company_names
end

#exclude_job_titlesObject

Returns the value of attribute exclude_job_titles.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def exclude_job_titles
  @exclude_job_titles
end

#exclude_keywordsObject

Returns the value of attribute exclude_keywords.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def exclude_keywords
  @exclude_keywords
end

#exclude_nationalObject

Returns the value of attribute exclude_national.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def exclude_national
  @exclude_national
end

#industry_codesObject

Returns the value of attribute industry_codes.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def industry_codes
  @industry_codes
end

#job_titleObject

Returns the value of attribute job_title.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def job_title
  @job_title
end

#keywordsObject

Returns the value of attribute keywords.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def keywords
  @keywords
end

#locationObject

Returns the value of attribute location.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def location
  @location
end

#order_byObject

Returns the value of attribute order_by.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def order_by
  @order_by
end

#order_directionObject

Returns the value of attribute order_direction.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def order_direction
  @order_direction
end

#pay_highObject

Returns the value of attribute pay_high.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def pay_high
  @pay_high
end

#pay_info_onlyObject

Returns the value of attribute pay_info_only.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def pay_info_only
  @pay_info_only
end

#pay_lowObject

Returns the value of attribute pay_low.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def pay_low
  @pay_low
end

#posted_withinObject

Returns the value of attribute posted_within.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def posted_within
  @posted_within
end

#radiusObject

Returns the value of attribute radius.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def radius
  @radius
end

#specific_educationObject

Returns the value of attribute specific_education.



58
59
60
# File 'lib/cb/models/cb_saved_search.rb', line 58

def specific_education
  @specific_education
end