Class: Google::Apis::DataflowV1b3::Linear
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::Linear
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Linear buckets with the following boundaries for indices in 0 to n-1. - i in [ 0, n-1]: [start + (i)*width, start + (i+1)*width)
Instance Attribute Summary collapse
-
#number_of_buckets ⇒ Fixnum
Must be greater than 0.
-
#start ⇒ Float
Lower bound of the first bucket.
-
#width ⇒ Float
Distance between bucket boundaries.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Linear
constructor
A new instance of Linear.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Linear
Returns a new instance of Linear.
3095 3096 3097 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3095 def initialize(**args) update!(**args) end |
Instance Attribute Details
#number_of_buckets ⇒ Fixnum
Must be greater than 0.
Corresponds to the JSON property numberOfBuckets
3083 3084 3085 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3083 def number_of_buckets @number_of_buckets end |
#start ⇒ Float
Lower bound of the first bucket.
Corresponds to the JSON property start
3088 3089 3090 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3088 def start @start end |
#width ⇒ Float
Distance between bucket boundaries. Must be greater than 0.
Corresponds to the JSON property width
3093 3094 3095 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3093 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3100 3101 3102 3103 3104 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3100 def update!(**args) @number_of_buckets = args[:number_of_buckets] if args.key?(:number_of_buckets) @start = args[:start] if args.key?(:start) @width = args[:width] if args.key?(:width) end |