Class: Google::Apis::JobsV3p1beta1::HistogramResult
- Inherits:
-
Object
- Object
- Google::Apis::JobsV3p1beta1::HistogramResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/jobs_v3p1beta1/classes.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb
Overview
Output only. Result of a histogram call. The response contains the histogram map for the search type specified by HistogramResult.field. The response is a map of each filter value to the corresponding count of jobs for that filter.
Instance Attribute Summary collapse
-
#search_type ⇒ String
The Histogram search filters.
-
#values ⇒ Hash<String,Fixnum>
A map from the values of field to the number of jobs with that value in this search result.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HistogramResult
constructor
A new instance of HistogramResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HistogramResult
Returns a new instance of HistogramResult.
1113 1114 1115 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1113 def initialize(**args) update!(**args) end |
Instance Attribute Details
#search_type ⇒ String
The Histogram search filters.
Corresponds to the JSON property searchType
1104 1105 1106 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1104 def search_type @search_type end |
#values ⇒ Hash<String,Fixnum>
A map from the values of field to the number of jobs with that value in this
search result. Key: search type (filter names, such as the companyName).
Values: the count of jobs that match the filter for this search.
Corresponds to the JSON property values
1111 1112 1113 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1111 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1118 1119 1120 1121 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 1118 def update!(**args) @search_type = args[:search_type] if args.key?(:search_type) @values = args[:values] if args.key?(:values) end |