Class: Google::Apis::HealthV4::HttpHeader

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

Overview

Represents an HTTP header.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpHeader

Returns a new instance of HttpHeader.



2128
2129
2130
# File 'lib/google/apis/health_v4/classes.rb', line 2128

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

Instance Attribute Details

#keyString

The HTTP header key. It is case insensitive. Corresponds to the JSON property key

Returns:

  • (String)


2121
2122
2123
# File 'lib/google/apis/health_v4/classes.rb', line 2121

def key
  @key
end

#valueString

The HTTP header value. Corresponds to the JSON property value

Returns:

  • (String)


2126
2127
2128
# File 'lib/google/apis/health_v4/classes.rb', line 2126

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2133
2134
2135
2136
# File 'lib/google/apis/health_v4/classes.rb', line 2133

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