Class: Google::Apis::PagespeedonlineV5::LhrEntity

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

Message containing an Entity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LhrEntity

Returns a new instance of LhrEntity.



306
307
308
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 306

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

Instance Attribute Details

#categoryString

Optional. An optional category name for the entity. Corresponds to the JSON property category

Returns:

  • (String)


277
278
279
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 277

def category
  @category
end

#homepageString

Optional. An optional homepage URL of the entity. Corresponds to the JSON property homepage

Returns:

  • (String)


282
283
284
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 282

def homepage
  @homepage
end

#is_first_partyBoolean Also known as: is_first_party?

Optional. An optional flag indicating if the entity is the first party. Corresponds to the JSON property isFirstParty

Returns:

  • (Boolean)


287
288
289
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 287

def is_first_party
  @is_first_party
end

#is_unrecognizedBoolean Also known as: is_unrecognized?

Optional. An optional flag indicating if the entity is not recognized. Corresponds to the JSON property isUnrecognized

Returns:

  • (Boolean)


293
294
295
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 293

def is_unrecognized
  @is_unrecognized
end

#nameString

Required. Name of the entity. Corresponds to the JSON property name

Returns:

  • (String)


299
300
301
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 299

def name
  @name
end

#originsArray<String>

Required. A list of URL origin strings that belong to this entity. Corresponds to the JSON property origins

Returns:

  • (Array<String>)


304
305
306
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 304

def origins
  @origins
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



311
312
313
314
315
316
317
318
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 311

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @homepage = args[:homepage] if args.key?(:homepage)
  @is_first_party = args[:is_first_party] if args.key?(:is_first_party)
  @is_unrecognized = args[:is_unrecognized] if args.key?(:is_unrecognized)
  @name = args[:name] if args.key?(:name)
  @origins = args[:origins] if args.key?(:origins)
end