Class: Google::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5::Metric::Distribution

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#maxFixnum

Corresponds to the JSON property max

Returns:

  • (Fixnum)


654
655
656
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 654

def max
  @max
end

#minFixnum

Corresponds to the JSON property min

Returns:

  • (Fixnum)


659
660
661
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 659

def min
  @min
end

#proportionFloat

Corresponds to the JSON property proportion

Returns:

  • (Float)


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