Class: Transport::JSON::RequestBuilder

Inherits:
Object
  • Object
show all
Includes:
Common::RequestBuilder
Defined in:
lib/transport/json/request_builder.rb

Overview

Builder for the json transport layer requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common::RequestBuilder

included

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



12
13
14
# File 'lib/transport/json/request_builder.rb', line 12

def request
  @request
end

Instance Method Details

#performObject



14
15
16
17
18
19
# File 'lib/transport/json/request_builder.rb', line 14

def perform
  set_headers
  convert_parameters_to_json
  convert_body_to_json
  build_http_request
end