Class: Ksql::Connection::Request
- Inherits:
-
Struct
- Object
- Struct
- Ksql::Connection::Request
- Defined in:
- lib/ksql/connection/request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#to_params ⇒ Array
Returns the request params.
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
5 6 7 |
# File 'lib/ksql/connection/request.rb', line 5 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
5 6 7 |
# File 'lib/ksql/connection/request.rb', line 5 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method
5 6 7 |
# File 'lib/ksql/connection/request.rb', line 5 def method @method end |
#path ⇒ Object
Returns the value of attribute path
5 6 7 |
# File 'lib/ksql/connection/request.rb', line 5 def path @path end |
Instance Method Details
#to_params ⇒ Array
Returns the request params
11 12 13 |
# File 'lib/ksql/connection/request.rb', line 11 def to_params return method, path, { body: body.to_json, headers: headers.merge(auth_headers) }.compact end |