Class: Google::Apis::WebsecurityscannerV1beta::Header
- Inherits:
-
Object
- Object
- Google::Apis::WebsecurityscannerV1beta::Header
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/websecurityscanner_v1beta/classes.rb,
generated/google/apis/websecurityscanner_v1beta/representations.rb,
generated/google/apis/websecurityscanner_v1beta/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.
354 355 356 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 354 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Header name.
Corresponds to the JSON property name
347 348 349 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 347 def name @name end |
#value ⇒ String
Header value.
Corresponds to the JSON property value
352 353 354 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 352 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
359 360 361 362 |
# File 'generated/google/apis/websecurityscanner_v1beta/classes.rb', line 359 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |