Class: Google::Apis::PagespeedonlineV5::LhrEntity
- Inherits:
-
Object
- Object
- Google::Apis::PagespeedonlineV5::LhrEntity
- 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
-
#category ⇒ String
Optional.
-
#homepage ⇒ String
Optional.
-
#is_first_party ⇒ Boolean
(also: #is_first_party?)
Optional.
-
#is_unrecognized ⇒ Boolean
(also: #is_unrecognized?)
Optional.
-
#name ⇒ String
Required.
-
#origins ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LhrEntity
constructor
A new instance of LhrEntity.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#category ⇒ String
Optional. An optional category name for the entity.
Corresponds to the JSON property category
277 278 279 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 277 def category @category end |
#homepage ⇒ String
Optional. An optional homepage URL of the entity.
Corresponds to the JSON property homepage
282 283 284 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 282 def homepage @homepage end |
#is_first_party ⇒ Boolean Also known as: is_first_party?
Optional. An optional flag indicating if the entity is the first party.
Corresponds to the JSON property isFirstParty
287 288 289 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 287 def is_first_party @is_first_party end |
#is_unrecognized ⇒ Boolean Also known as: is_unrecognized?
Optional. An optional flag indicating if the entity is not recognized.
Corresponds to the JSON property isUnrecognized
293 294 295 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 293 def is_unrecognized @is_unrecognized end |
#name ⇒ String
Required. Name of the entity.
Corresponds to the JSON property name
299 300 301 |
# File 'lib/google/apis/pagespeedonline_v5/classes.rb', line 299 def name @name end |
#origins ⇒ Array<String>
Required. A list of URL origin strings that belong to this entity.
Corresponds to the JSON property origins
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 |