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
666 667 668 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max ⇒ Fixnum
Corresponds to the JSON property max
654 655 656 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 654 def max @max end |
#min ⇒ Fixnum
Corresponds to the JSON property min
659 660 661 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 659 def min @min end |
#proportion ⇒ Float
Corresponds to the JSON property proportion
664 665 666 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 664 def proportion @proportion end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
671 672 673 674 675 |
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 671 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 |