Class: Curl::ThreadPool::Request
- Inherits:
-
Object
- Object
- Curl::ThreadPool::Request
- Defined in:
- lib/curb_threadpool.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
methods supported: :delete, :get, :head, :post, :put.
-
#key ⇒ Object
methods supported: :delete, :get, :head, :post, :put.
-
#method ⇒ Object
methods supported: :delete, :get, :head, :post, :put.
-
#uri ⇒ Object
methods supported: :delete, :get, :head, :post, :put.
Instance Method Summary collapse
-
#initialize(key, uri, method = :get, body = nil) ⇒ Request
constructor
A new instance of Request.
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
#body ⇒ Object
methods supported: :delete, :get, :head, :post, :put
10 11 12 |
# File 'lib/curb_threadpool.rb', line 10 def body @body end |
#key ⇒ Object
methods supported: :delete, :get, :head, :post, :put
10 11 12 |
# File 'lib/curb_threadpool.rb', line 10 def key @key end |
#method ⇒ Object
methods supported: :delete, :get, :head, :post, :put
10 11 12 |
# File 'lib/curb_threadpool.rb', line 10 def method @method end |
#uri ⇒ Object
methods supported: :delete, :get, :head, :post, :put
10 11 12 |
# File 'lib/curb_threadpool.rb', line 10 def uri @uri end |