Class: Google::Apis::PagespeedonlineV5::PagespeedVersion

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#majorString

The major version number of PageSpeed used to generate these results. Corresponds to the JSON property major

Returns:

  • (String)


754
755
756
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 754

def major
  @major
end

#minorString

The minor version number of PageSpeed used to generate these results. Corresponds to the JSON property minor

Returns:

  • (String)


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