Class: Google::Apis::PagespeedonlineV5::Bucket

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#maxFixnum

Upper bound for a bucket's range. Corresponds to the JSON property max

Returns:

  • (Fixnum)


65
66
67
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 65

def max
  @max
end

#minFixnum

Lower bound for a bucket's range. Corresponds to the JSON property min

Returns:

  • (Fixnum)


70
71
72
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 70

def min
  @min
end

#proportionFloat

The proportion of data in this bucket. Corresponds to the JSON property proportion

Returns:

  • (Float)


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