Class: Google::Apis::JobsV2::CompensationFilter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/jobs_v2/classes.rb,
generated/google/apis/jobs_v2/representations.rb,
generated/google/apis/jobs_v2/representations.rb

Overview

Input only. Filter on job compensation type and amount.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CompensationFilter

Returns a new instance of CompensationFilter.



504
505
506
# File 'generated/google/apis/jobs_v2/classes.rb', line 504

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#include_jobs_with_unspecified_compensation_rangeBoolean Also known as: include_jobs_with_unspecified_compensation_range?

Optional. Whether to include jobs whose compensation range is unspecified. Corresponds to the JSON property includeJobsWithUnspecifiedCompensationRange

Returns:

  • (Boolean)


485
486
487
# File 'generated/google/apis/jobs_v2/classes.rb', line 485

def include_jobs_with_unspecified_compensation_range
  @include_jobs_with_unspecified_compensation_range
end

#rangeGoogle::Apis::JobsV2::CompensationRange

Compensation range. Corresponds to the JSON property range



491
492
493
# File 'generated/google/apis/jobs_v2/classes.rb', line 491

def range
  @range
end

#typeString

Required. Type of filter. Corresponds to the JSON property type

Returns:

  • (String)


496
497
498
# File 'generated/google/apis/jobs_v2/classes.rb', line 496

def type
  @type
end

#unitsArray<String>

Required. Specify desired base compensation entry's CompensationInfo.CompensationUnit. Corresponds to the JSON property units

Returns:

  • (Array<String>)


502
503
504
# File 'generated/google/apis/jobs_v2/classes.rb', line 502

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



509
510
511
512
513
514
# File 'generated/google/apis/jobs_v2/classes.rb', line 509

def update!(**args)
  @include_jobs_with_unspecified_compensation_range = args[:include_jobs_with_unspecified_compensation_range] if args.key?(:include_jobs_with_unspecified_compensation_range)
  @range = args[:range] if args.key?(:range)
  @type = args[:type] if args.key?(:type)
  @units = args[:units] if args.key?(:units)
end