Class: Google::Apis::JobsV3p1beta1::BucketRange

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 starting and ending value of a range in double.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BucketRange

Returns a new instance of BucketRange.



101
102
103
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 101

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

Instance Attribute Details

#fromFloat

Starting value of the bucket range. Corresponds to the JSON property from

Returns:

  • (Float)


94
95
96
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 94

def from
  @from
end

#toFloat

Ending value of the bucket range. Corresponds to the JSON property to

Returns:

  • (Float)


99
100
101
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 99

def to
  @to
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



106
107
108
109
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 106

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