Class: Google::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5::Metric::Distribution
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5::Metric::Distribution
- 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
Instance Attribute Summary collapse
-
#max ⇒ Fixnum
Corresponds to the JSON property
max
. -
#min ⇒ Fixnum
Corresponds to the JSON property
min
. -
#proportion ⇒ Float
Corresponds to the JSON property
proportion
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Distribution
constructor
A new instance of Distribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Distribution
Returns a new instance of Distribution
709 710 711 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 709 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max ⇒ Fixnum
Corresponds to the JSON property max
697 698 699 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 697 def max @max end |
#min ⇒ Fixnum
Corresponds to the JSON property min
702 703 704 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 702 def min @min end |
#proportion ⇒ Float
Corresponds to the JSON property proportion
707 708 709 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 707 def proportion @proportion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
714 715 716 717 718 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 714 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 |