Class: Solr::Response::SolrError
- Inherits:
-
Object
- Object
- Solr::Response::SolrError
- Defined in:
- lib/solr/response/solr_error.rb
Direct Known Subclasses
Defined Under Namespace
Classes: None
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ SolrError
constructor
A new instance of SolrError.
- #inspect ⇒ Object
Constructor Details
#initialize(code:, message:) ⇒ SolrError
Returns a new instance of SolrError.
20 21 22 23 24 |
# File 'lib/solr/response/solr_error.rb', line 20 def initialize(code:, message:) @code = code @message = freeze end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
19 20 21 |
# File 'lib/solr/response/solr_error.rb', line 19 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
19 20 21 |
# File 'lib/solr/response/solr_error.rb', line 19 def @message end |
Class Method Details
Instance Method Details
#inspect ⇒ Object
26 27 28 |
# File 'lib/solr/response/solr_error.rb', line 26 def inspect "#{} (#{code})" end |