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

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: Header, Url

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

Returns a new instance of UrlBlock



188
189
190
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 188

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

Instance Attribute Details

#headerGoogle::Apis::PagespeedonlineV1::Result::FormattedResults::RuleResult::UrlBlock::Header

Heading to be displayed with the list of URLs. Corresponds to the JSON property header



181
182
183
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 181

def header
  @header
end

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

List of entries that provide information about URLs in the url block. Optional. Corresponds to the JSON property urls



186
187
188
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 186

def urls
  @urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



193
194
195
196
# File 'generated/google/apis/pagespeedonline_v1/classes.rb', line 193

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