Class: Google::Apis::PagespeedonlineV5::PagespeedVersion
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::PagespeedVersion
- 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
The Pagespeed Version object.
Instance Attribute Summary collapse
-
#major ⇒ String
The major version number of PageSpeed used to generate these results.
-
#minor ⇒ String
The minor version number of PageSpeed used to generate these results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PagespeedVersion
constructor
A new instance of PagespeedVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PagespeedVersion
Returns a new instance of PagespeedVersion.
761 762 763 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 761 def initialize(**args) update!(**args) end |
Instance Attribute Details
#major ⇒ String
The major version number of PageSpeed used to generate these results.
Corresponds to the JSON property major
754 755 756 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 754 def major @major end |
#minor ⇒ String
The minor version number of PageSpeed used to generate these results.
Corresponds to the JSON property minor
759 760 761 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 759 def minor @minor end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
766 767 768 769 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 766 def update!(**args) @major = args[:major] if args.key?(:major) @minor = args[:minor] if args.key?(:minor) end |