Class: Solr::Request::HttpRequest
- Inherits:
-
Object
- Object
- Solr::Request::HttpRequest
- Defined in:
- lib/solr/request/http_request.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#url_params ⇒ Object
readonly
Returns the value of attribute url_params.
Instance Method Summary collapse
-
#initialize(path: '/', body: {}, url_params: {}, method: :get) ⇒ HttpRequest
constructor
A new instance of HttpRequest.
Constructor Details
#initialize(path: '/', body: {}, url_params: {}, method: :get) ⇒ HttpRequest
Returns a new instance of HttpRequest.
6 7 8 9 10 11 |
# File 'lib/solr/request/http_request.rb', line 6 def initialize(path: '/', body: {}, url_params: {}, method: :get) @path = path @body = body @url_params = url_params @method = method end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/solr/request/http_request.rb', line 4 def body @body end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
4 5 6 |
# File 'lib/solr/request/http_request.rb', line 4 def method @method end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
4 5 6 |
# File 'lib/solr/request/http_request.rb', line 4 def path @path end |
#url_params ⇒ Object (readonly)
Returns the value of attribute url_params.
4 5 6 |
# File 'lib/solr/request/http_request.rb', line 4 def url_params @url_params end |