class Solr::Response::HttpStatus
Attributes
message[R]
status[R]
Public Class Methods
new(status:, message:)
click to toggle source
# File lib/solr/response/http_status.rb, line 16 def initialize(status:, message:) @status = status @message = message freeze end
not_found()
click to toggle source
# File lib/solr/response/http_status.rb, line 9 def not_found new(status: 404, message: 'Not Found') end
ok()
click to toggle source
# File lib/solr/response/http_status.rb, line 5 def ok new(status: 200, message: 'OK') end
Public Instance Methods
inspect()
click to toggle source
# File lib/solr/response/http_status.rb, line 22 def inspect "#{status} (#{message})" end