Sha256: 1fe7527705a6213fe9d9469d612eb127d0ea7ec42e177f675c29a33753f025cd

Contents?: true

Size: 485 Bytes

Versions: 5

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

require 'net/http'

module Net
  class HTTP
    module StructuredFieldValues
      # ParameterizedValue represents a value with parameters.
      class ParameterizedValue
        attr_reader :value, :parameters

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
net-http-structured_field_values-0.3.1 lib/net/http/structured_field_values/parameterized_value.rb
net-http-structured_field_values-0.3.0 lib/net/http/structured_field_values/parameterized_value.rb
net-http-structured_field_values-0.2.0 lib/net/http/structured_field_values/parameterized_value.rb
net-http-structured_field_values-0.1.2 lib/net/http/structured_field_values/parameterized_value.rb
net-http-structured_field_values-0.1.1 lib/net/http/structured_field_values/parameterized_value.rb