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

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

Instance Method Summary collapse

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

#maxFixnum

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

Returns:

  • (Fixnum)


77
78
79
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 77

def max
  @max
end

#minFixnum

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

Returns:

  • (Fixnum)


82
83
84
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 82

def min
  @min
end

#proportionFloat

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

Returns:

  • (Float)


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