Class: Aws::EventStream::HeaderValue

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-eventstream/lib/aws-eventstream/header_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @type = options.fetch(:type)
  @value = options[:format] ?
    format_value(options.fetch(:value)) :
    options.fetch(:value)
end

Instance Attribute Details

#typeString (readonly)

Returns type of the header value complete type list see Aws::EventStream::Types.

Returns:

  • (String)

    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

#valueObject (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