Class: Transport::HTTP::RequestBuilder::ParameterSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/transport/http/request_builder/parameter_serializer.rb

Overview

Serializer for transport http parameters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameters = nil) ⇒ ParameterSerializer

Returns a new instance of ParameterSerializer.



16
17
18
# File 'lib/transport/http/request_builder/parameter_serializer.rb', line 16

def initialize(parameters = nil)
  @parameters = parameters || { }
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



14
15
16
# File 'lib/transport/http/request_builder/parameter_serializer.rb', line 14

def result
  @result
end

Instance Method Details

#performObject



20
21
22
23
# File 'lib/transport/http/request_builder/parameter_serializer.rb', line 20

def perform
  quote_parameters
  serialize_parameters
end