Class: Google::Apis::PagespeedonlineV5::Timing

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

Overview

Message containing the performance timing data for the Lighthouse run.

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) ⇒ Timing

Returns a new instance of Timing.



788
789
790
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 788

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

Instance Attribute Details

#totalFloat

The total duration of Lighthouse's run. Corresponds to the JSON property total

Returns:

  • (Float)


786
787
788
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 786

def total
  @total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



793
794
795
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 793

def update!(**args)
  @total = args[:total] if args.key?(:total)
end