Class: Google::Apis::JobsV3::BucketizedCount

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

Overview

Represents count of jobs within one bucket.

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

Returns a new instance of BucketizedCount



139
140
141
# File 'generated/google/apis/jobs_v3/classes.rb', line 139

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

Instance Attribute Details

#countFixnum

Number of jobs whose numeric field value fall into range. Corresponds to the JSON property count

Returns:

  • (Fixnum)


132
133
134
# File 'generated/google/apis/jobs_v3/classes.rb', line 132

def count
  @count
end

#rangeGoogle::Apis::JobsV3::BucketRange

Represents starting and ending value of a range in double. Corresponds to the JSON property range



137
138
139
# File 'generated/google/apis/jobs_v3/classes.rb', line 137

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



144
145
146
147
# File 'generated/google/apis/jobs_v3/classes.rb', line 144

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