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

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

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



464
465
466
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 464

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

Instance Attribute Details

#detailsArray<Google::Apis::PagespeedonlineV2::FormatString>

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



456
457
458
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 456

def details
  @details
end

#resultGoogle::Apis::PagespeedonlineV2::FormatString

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



462
463
464
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 462

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



469
470
471
472
# File 'generated/google/apis/pagespeedonline_v2/classes.rb', line 469

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