Class: Google::Apis::JobsV2::HistogramResults

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

Output only. Histogram results that matches HistogramFacets specified in SearchJobsRequest.

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) ⇒ HistogramResults

Returns a new instance of HistogramResults



1539
1540
1541
# File 'generated/google/apis/jobs_v2/classes.rb', line 1539

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

Instance Attribute Details

#compensation_histogram_resultsArray<Google::Apis::JobsV2::CompensationHistogramResult>

Specifies compensation field-based histogram results that matches HistogramFacets.compensation_histogram_requests. Corresponds to the JSON property compensationHistogramResults



1525
1526
1527
# File 'generated/google/apis/jobs_v2/classes.rb', line 1525

def compensation_histogram_results
  @compensation_histogram_results
end

#custom_attribute_histogram_resultsArray<Google::Apis::JobsV2::CustomAttributeHistogramResult>

Specifies histogram results for custom attributes that matches HistogramFacets.custom_attribute_histogram_facets. Corresponds to the JSON property customAttributeHistogramResults



1531
1532
1533
# File 'generated/google/apis/jobs_v2/classes.rb', line 1531

def custom_attribute_histogram_results
  @custom_attribute_histogram_results
end

#simple_histogram_resultsArray<Google::Apis::JobsV2::HistogramResult>

Specifies histogram results that matches HistogramFacets.simple_histogram_facets. Corresponds to the JSON property simpleHistogramResults



1537
1538
1539
# File 'generated/google/apis/jobs_v2/classes.rb', line 1537

def simple_histogram_results
  @simple_histogram_results
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1544
1545
1546
1547
1548
# File 'generated/google/apis/jobs_v2/classes.rb', line 1544

def update!(**args)
  @compensation_histogram_results = args[:compensation_histogram_results] if args.key?(:compensation_histogram_results)
  @custom_attribute_histogram_results = args[:custom_attribute_histogram_results] if args.key?(:custom_attribute_histogram_results)
  @simple_histogram_results = args[:simple_histogram_results] if args.key?(:simple_histogram_results)
end