Class: Net::HTTP::StructuredFieldValues::ParameterizedValue

Inherits:
Object
  • Object
show all
Defined in:
lib/net/http/structured_field_values/parameterized_value.rb

Overview

ParameterizedValue represents a value with parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, parameters) ⇒ ParameterizedValue

Returns a new instance of ParameterizedValue.



12
13
14
15
# File 'lib/net/http/structured_field_values/parameterized_value.rb', line 12

def initialize(value, parameters)
  @value = value
  @parameters = parameters
end

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



10
11
12
# File 'lib/net/http/structured_field_values/parameterized_value.rb', line 10

def parameters
  @parameters
end

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/net/http/structured_field_values/parameterized_value.rb', line 10

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



17
18
19
# File 'lib/net/http/structured_field_values/parameterized_value.rb', line 17

def ==(other)
  value == other.value && parameters == other.parameters
end