Class: Aws::EventStream::HeaderValue
- Inherits:
-
Object
- Object
- Aws::EventStream::HeaderValue
- Defined in:
- gems/aws-eventstream/lib/aws-eventstream/header_value.rb
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
Type of the header value complete type list see Aws::EventStream::Types.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(options) ⇒ HeaderValue
constructor
A new instance of HeaderValue.
Constructor Details
#initialize(options) ⇒ HeaderValue
Returns a new instance of HeaderValue.
8 9 10 11 12 13 |
# File 'gems/aws-eventstream/lib/aws-eventstream/header_value.rb', line 8 def initialize() @type = .fetch(:type) @value = [:format] ? format_value(.fetch(:value)) : .fetch(:value) end |
Instance Attribute Details
#type ⇒ String (readonly)
Returns type of the header value complete type list see Aws::EventStream::Types.
19 20 21 |
# File 'gems/aws-eventstream/lib/aws-eventstream/header_value.rb', line 19 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
15 16 17 |
# File 'gems/aws-eventstream/lib/aws-eventstream/header_value.rb', line 15 def value @value end |