Module: Transport::Common::RequestBuilder

Included in:
HTTP::RequestBuilder, JSON::RequestBuilder
Defined in:
lib/transport/common/request_builder.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base_class) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/transport/common/request_builder.rb', line 9

def self.included(base_class)
  base_class.class_eval do
    include InstanceMethods

    def self.build(*arguments)
      request_builder = new *arguments
      request_builder.perform
      [ request_builder.uri, request_builder.request ]
    end

  end
end