Class: Google::Apis::PagespeedonlineV5::Timing
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::Timing
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pagespeedonline_v5/classes.rb,
lib/google/apis/pagespeedonline_v5/representations.rb,
lib/google/apis/pagespeedonline_v5/representations.rb
Overview
Message containing the performance timing data for the Lighthouse run.
Instance Attribute Summary collapse
-
#total ⇒ Float
The total duration of Lighthouse's run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Timing
constructor
A new instance of Timing.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Timing
Returns a new instance of Timing.
1171 1172 1173 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1171 def initialize(**args) update!(**args) end |
Instance Attribute Details
#total ⇒ Float
The total duration of Lighthouse's run.
Corresponds to the JSON property total
1169 1170 1171 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1169 def total @total end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1176 1177 1178 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 1176 def update!(**args) @total = args[:total] if args.key?(:total) end |