Class: Google::Apis::JobsV3::BucketRange

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

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

Returns a new instance of BucketRange.


113
114
115
# File 'generated/google/apis/jobs_v3/classes.rb', line 113

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

Instance Attribute Details

#fromFloat

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

Returns:

  • (Float)

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

def from
  @from
end

#toFloat

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

Returns:

  • (Float)

111
112
113
# File 'generated/google/apis/jobs_v3/classes.rb', line 111

def to
  @to
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


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

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