Class: Tessera::Request
- Inherits:
-
Object
- Object
- Tessera::Request
- Defined in:
- lib/tessera/request.rb
Instance Method Summary collapse
-
#initialize(method, endpoint, body) ⇒ Request
constructor
A new instance of Request.
- #send ⇒ Object
Constructor Details
#initialize(method, endpoint, body) ⇒ Request
Returns a new instance of Request.
21 22 23 24 25 |
# File 'lib/tessera/request.rb', line 21 def initialize(method, endpoint, body) @method = method @endpoint = endpoint @body = body end |
Instance Method Details
#send ⇒ Object
27 28 29 30 |
# File 'lib/tessera/request.rb', line 27 def send net_http_send # Response.new(net_http_send) end |