Class: Transport::HTTP::RequestBuilder::ParameterSerializer
- Inherits:
-
Object
- Object
- Transport::HTTP::RequestBuilder::ParameterSerializer
- Defined in:
- lib/transport/http/request_builder/parameter_serializer.rb
Overview
Serializer for transport http parameters.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(parameters = nil) ⇒ ParameterSerializer
constructor
A new instance of ParameterSerializer.
- #perform ⇒ Object
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
#result ⇒ Object (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
#perform ⇒ Object
20 21 22 23 |
# File 'lib/transport/http/request_builder/parameter_serializer.rb', line 20 def perform quote_parameters serialize_parameters end |