Class: Google::Apis::PagespeedonlineV5::Bucket
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::Bucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb
Overview
A proportion of data in the total distribution, bucketed by a min/max percentage. Each bucket's range is bounded by min <= x < max, In millisecond.
Instance Attribute Summary collapse
-
#max ⇒ Fixnum
Upper bound for a bucket's range.
-
#min ⇒ Fixnum
Lower bound for a bucket's range.
-
#proportion ⇒ Float
The proportion of data in this bucket.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Bucket
constructor
A new instance of Bucket.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Bucket
Returns a new instance of Bucket.
77 78 79 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 77 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max ⇒ Fixnum
Upper bound for a bucket's range.
Corresponds to the JSON property max
65 66 67 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 65 def max @max end |
#min ⇒ Fixnum
Lower bound for a bucket's range.
Corresponds to the JSON property min
70 71 72 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 70 def min @min end |
#proportion ⇒ Float
The proportion of data in this bucket.
Corresponds to the JSON property proportion
75 76 77 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 75 def proportion @proportion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
82 83 84 85 86 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 82 def update!(**args) @max = args[:max] if args.key?(:max) @min = args[:min] if args.key?(:min) @proportion = args[:proportion] if args.key?(:proportion) end |