Class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric::Distribution

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pagespeedonline_v4/classes.rb,
generated/google/apis/pagespeedonline_v4/representations.rb,
generated/google/apis/pagespeedonline_v4/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



582
583
584
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 582

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#maxFixnum

Corresponds to the JSON property max

Returns:

  • (Fixnum)


570
571
572
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 570

def max
  @max
end

#minFixnum

Corresponds to the JSON property min

Returns:

  • (Fixnum)


575
576
577
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 575

def min
  @min
end

#proportionFloat

Corresponds to the JSON property proportion

Returns:

  • (Float)


580
581
582
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 580

def proportion
  @proportion
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



587
588
589
590
591
# File 'generated/google/apis/pagespeedonline_v4/classes.rb', line 587

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