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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Bucket
Returns a new instance of Bucket.
78 79 80 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 78 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max ⇒ Fixnum
Upper bound for a bucket's range.
Corresponds to the JSON property max
66 67 68 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 66 def max @max end |
#min ⇒ Fixnum
Lower bound for a bucket's range.
Corresponds to the JSON property min
71 72 73 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 71 def min @min end |
#proportion ⇒ Float
The proportion of data in this bucket.
Corresponds to the JSON property proportion
76 77 78 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 76 def proportion @proportion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
83 84 85 86 87 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 83 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 |