Class: Cb::CbSavedSearch::CbSavedSearchParameters

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ CbSavedSearchParameters

Returns a new instance of CbSavedSearchParameters.



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

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
    @country                    = args['Country'] || ''
end

Instance Attribute Details

#boolean_operatorObject

Returns the value of attribute boolean_operator.



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

def boolean_operator
  @boolean_operator
end

#categoryObject

Returns the value of attribute category.



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

def category
  @category
end

#countryObject

Returns the value of attribute country.



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

def country
  @country
end

#education_codeObject

Returns the value of attribute education_code.



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

def education_code
  @education_code
end

#emp_typeObject

Returns the value of attribute emp_type.



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

def emp_type
  @emp_type
end

#exclude_company_namesObject

Returns the value of attribute exclude_company_names.



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

def exclude_company_names
  @exclude_company_names
end

#exclude_job_titlesObject

Returns the value of attribute exclude_job_titles.



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

def exclude_job_titles
  @exclude_job_titles
end

#exclude_keywordsObject

Returns the value of attribute exclude_keywords.



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

def exclude_keywords
  @exclude_keywords
end

#exclude_nationalObject

Returns the value of attribute exclude_national.



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

def exclude_national
  @exclude_national
end

#industry_codesObject

Returns the value of attribute industry_codes.



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

def industry_codes
  @industry_codes
end

#job_titleObject

Returns the value of attribute job_title.



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

def job_title
  @job_title
end

#keywordsObject

Returns the value of attribute keywords.



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

def keywords
  @keywords
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#order_byObject

Returns the value of attribute order_by.



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

def order_by
  @order_by
end

#order_directionObject

Returns the value of attribute order_direction.



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

def order_direction
  @order_direction
end

#pay_highObject

Returns the value of attribute pay_high.



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

def pay_high
  @pay_high
end

#pay_info_onlyObject

Returns the value of attribute pay_info_only.



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

def pay_info_only
  @pay_info_only
end

#pay_lowObject

Returns the value of attribute pay_low.



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

def pay_low
  @pay_low
end

#posted_withinObject

Returns the value of attribute posted_within.



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

def posted_within
  @posted_within
end

#radiusObject

Returns the value of attribute radius.



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

def radius
  @radius
end

#specific_educationObject

Returns the value of attribute specific_education.



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

def specific_education
  @specific_education
end