Class: EventMachine::MockHttpRequest::RegisteredRequest
- Inherits:
-
Struct
- Object
- Struct
- EventMachine::MockHttpRequest::RegisteredRequest
- Defined in:
- lib/em-http/mock.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#uri ⇒ Object
Returns the value of attribute uri.
Class Method Summary collapse
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers
8 9 10 |
# File 'lib/em-http/mock.rb', line 8 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method
8 9 10 |
# File 'lib/em-http/mock.rb', line 8 def method @method end |
#uri ⇒ Object
Returns the value of attribute uri
8 9 10 |
# File 'lib/em-http/mock.rb', line 8 def uri @uri end |
Class Method Details
.build(uri, method, headers) ⇒ Object
9 10 11 |
# File 'lib/em-http/mock.rb', line 9 def self.build(uri, method, headers) new(uri, method.to_s.upcase, headers || {}) end |