Class: Google::Apis::WebsecurityscannerV1beta::Header

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



359
360
361
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 359

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

Instance Attribute Details

#nameString

Header name. Corresponds to the JSON property name

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 352

def name
  @name
end

#valueString

Header value. Corresponds to the JSON property value

Returns:

  • (String)


357
358
359
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 357

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



364
365
366
367
# File 'lib/google/apis/websecurityscanner_v1beta/classes.rb', line 364

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