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

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

The Pagespeed Version object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PagespeedVersion

Returns a new instance of PagespeedVersion.



598
599
600
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 598

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)


591
592
593
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 591

def major
  @major
end

#minorString

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

Returns:

  • (String)


596
597
598
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 596

def minor
  @minor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



603
604
605
606
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 603

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