Class: Net::HTTP::StructuredFieldValues::ParameterizedValue
- Inherits:
-
Object
- Object
- Net::HTTP::StructuredFieldValues::ParameterizedValue
- Defined in:
- lib/net/http/structured_field_values/parameterized_value.rb
Overview
ParameterizedValue represents a value with parameters.
Instance Attribute Summary collapse
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value, parameters) ⇒ ParameterizedValue
constructor
A new instance of ParameterizedValue.
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
#parameters ⇒ Object (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 |
#value ⇒ Object (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 |