Class: Google::Apis::JobsV3p1beta1::HistogramResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/jobs_v3p1beta1/classes.rb,
generated/google/apis/jobs_v3p1beta1/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HistogramResult

Returns a new instance of HistogramResult.



1206
1207
1208
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1206

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

Instance Attribute Details

#search_typeString

The Histogram search filters. Corresponds to the JSON property searchType

Returns:

  • (String)


1196
1197
1198
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1196

def search_type
  @search_type
end

#valuesHash<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

Returns:

  • (Hash<String,Fixnum>)


1204
1205
1206
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1204

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1211
1212
1213
1214
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 1211

def update!(**args)
  @search_type = args[:search_type] if args.key?(:search_type)
  @values = args[:values] if args.key?(:values)
end