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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/websecurityscanner_v1alpha/classes.rb,
lib/google/apis/websecurityscanner_v1alpha/representations.rb,
lib/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.



309
310
311
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 309

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

Instance Attribute Details

#nameString

Header name. Corresponds to the JSON property name

Returns:

  • (String)


302
303
304
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 302

def name
  @name
end

#valueString

Header value. Corresponds to the JSON property value

Returns:

  • (String)


307
308
309
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 307

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



314
315
316
317
# File 'lib/google/apis/websecurityscanner_v1alpha/classes.rb', line 314

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