Class: Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pagespeedonline_v1/classes.rb,
generated/google/apis/pagespeedonline_v1/representations.rb,
generated/google/apis/pagespeedonline_v1/representations.rb

Defined Under Namespace

Classes: Detail, Result

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

Returns a new instance of Url



265
266
267
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 265

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

Instance Attribute Details

#detailsArray<Google::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Detail>

List of entries that provide additional details about a single URL. Optional. Corresponds to the JSON property details



257
258
259
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 257

def details
  @details
end

#resultGoogle::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Url::Result

A format string that gives information about the URL, and a list of arguments for that format string. Corresponds to the JSON property result



263
264
265
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 263

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
273
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 270

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