Module: HTTPCage

Defined in:
lib/http-cage.rb,
lib/http-cage/patch.rb,
lib/http-cage/version.rb

Defined Under Namespace

Modules: Patch

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.applyObject



23
24
25
# File 'lib/http-cage.rb', line 23

def self.apply
  Net::HTTP.prepend HTTPCage::Patch
end

.connectionObject



9
10
11
# File 'lib/http-cage.rb', line 9

def self.connection
  @connection
end

.requestObject



13
14
15
# File 'lib/http-cage.rb', line 13

def self.request
  @request
end

.timeout(args) ⇒ Object



17
18
19
20
21
# File 'lib/http-cage.rb', line 17

def self.timeout(args)
  @connection = args[:connection]
  @request = args[:request]
  apply
end