Class: Google::Apis::PagespeedonlineV5::Bucket
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::Bucket
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pagespeedonline_v5/classes.rb,
lib/google/apis/pagespeedonline_v5/representations.rb,
lib/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.
89 90 91 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 89 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max ⇒ Fixnum
Upper bound for a bucket's range.
Corresponds to the JSON property max
77 78 79 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 77 def max @max end |
#min ⇒ Fixnum
Lower bound for a bucket's range.
Corresponds to the JSON property min
82 83 84 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 82 def min @min end |
#proportion ⇒ Float
The proportion of data in this bucket.
Corresponds to the JSON property proportion
87 88 89 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 87 def proportion @proportion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
94 95 96 97 98 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 94 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 |