Class: Solr::Request::HttpRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/solr/request/http_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



4
5
6
# File 'lib/solr/request/http_request.rb', line 4

def body
  @body
end

#methodObject (readonly)

Returns the value of attribute method.



4
5
6
# File 'lib/solr/request/http_request.rb', line 4

def method
  @method
end

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/solr/request/http_request.rb', line 4

def path
  @path
end

#url_paramsObject (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