Class: Aws::EventStream::HeaderValue

Inherits:
Object
  • Object
show all
Defined in:
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.



6
7
8
9
10
11
# File 'lib/aws-eventstream/header_value.rb', line 6

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



17
18
19
# File 'lib/aws-eventstream/header_value.rb', line 17

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



13
14
15
# File 'lib/aws-eventstream/header_value.rb', line 13

def value
  @value
end