Class: Curl::ThreadPool::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/curb_threadpool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, uri, method = :get, body = nil) ⇒ Request

Returns a new instance of Request.



11
12
13
14
15
16
# File 'lib/curb_threadpool.rb', line 11

def initialize(key, uri, method=:get, body=nil)
  @key    = key
  @uri    = uri
  @method = method
  @body   = body
end

Instance Attribute Details

#bodyObject

methods supported: :delete, :get, :head, :post, :put



10
11
12
# File 'lib/curb_threadpool.rb', line 10

def body
  @body
end

#keyObject

methods supported: :delete, :get, :head, :post, :put



10
11
12
# File 'lib/curb_threadpool.rb', line 10

def key
  @key
end

#methodObject

methods supported: :delete, :get, :head, :post, :put



10
11
12
# File 'lib/curb_threadpool.rb', line 10

def method
  @method
end

#uriObject

methods supported: :delete, :get, :head, :post, :put



10
11
12
# File 'lib/curb_threadpool.rb', line 10

def uri
  @uri
end