Class: Google::Apis::JobsV3p1beta1::BucketizedCount

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

Represents count of jobs within one bucket.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BucketizedCount

Returns a new instance of BucketizedCount.



126
127
128
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 126

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)


119
120
121
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 119

def count
  @count
end

#rangeGoogle::Apis::JobsV3p1beta1::BucketRange

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



124
125
126
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 124

def range
  @range
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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