Class: Google::Apis::WebsecurityscannerV1alpha::Header

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/websecurityscanner_v1alpha/classes.rb,
generated/google/apis/websecurityscanner_v1alpha/representations.rb,
generated/google/apis/websecurityscanner_v1alpha/representations.rb

Overview

Describes a HTTP Header.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Header

Returns a new instance of Header.



310
311
312
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 310

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

Instance Attribute Details

#nameString

Header name. Corresponds to the JSON property name

Returns:

  • (String)


303
304
305
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 303

def name
  @name
end

#valueString

Header value. Corresponds to the JSON property value

Returns:

  • (String)


308
309
310
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 308

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



315
316
317
318
# File 'generated/google/apis/websecurityscanner_v1alpha/classes.rb', line 315

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