class Solr::Response::Header
Attributes
status[R]
time[R]
Public Class Methods
new(status:, time: 0)
click to toggle source
# File lib/solr/response/header.rb, line 6 def initialize(status:, time: 0) @status = status @time = time freeze end
Public Instance Methods
inspect()
click to toggle source
# File lib/solr/response/header.rb, line 16 def inspect if ok? 'OK' else status.to_s end end
ok?()
click to toggle source
# File lib/solr/response/header.rb, line 12 def ok? status.zero? end