Class: Google::Apis::WebsecurityscannerV1::Header
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1::Header
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/websecurityscanner_v1/classes.rb,
lib/google/apis/websecurityscanner_v1/representations.rb,
lib/google/apis/websecurityscanner_v1/representations.rb
Overview
Describes a HTTP Header.
Instance Attribute Summary collapse
-
#name ⇒ String
Header name.
-
#value ⇒ String
Header value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Header
constructor
A new instance of Header.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Header
Returns a new instance of Header.
362 363 364 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 362 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Header name.
Corresponds to the JSON property name
355 356 357 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 355 def name @name end |
#value ⇒ String
Header value.
Corresponds to the JSON property value
360 361 362 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 360 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
367 368 369 370 |
# File 'lib/google/apis/websecurityscanner_v1/classes.rb', line 367 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |