Class: Google::Apis::HealthV4::HttpHeader
- Inherits:
-
Object
- Object
- Google::Apis::HealthV4::HttpHeader
- 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
-
#key ⇒ String
The HTTP header key.
-
#value ⇒ String
The HTTP header value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpHeader
constructor
A new instance of HttpHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpHeader
Returns a new instance of HttpHeader.
2074 2075 2076 |
# File 'lib/google/apis/health_v4/classes.rb', line 2074 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
The HTTP header key. It is case insensitive.
Corresponds to the JSON property key
2067 2068 2069 |
# File 'lib/google/apis/health_v4/classes.rb', line 2067 def key @key end |
#value ⇒ String
The HTTP header value.
Corresponds to the JSON property value
2072 2073 2074 |
# File 'lib/google/apis/health_v4/classes.rb', line 2072 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2079 2080 2081 2082 |
# File 'lib/google/apis/health_v4/classes.rb', line 2079 def update!(**args) @key = args[:key] if args.key?(:key) @value = args[:value] if args.key?(:value) end |