Exception: SearchFlip::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- SearchFlip::ResponseError
- Defined in:
- lib/search_flip.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:, body:) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #to_s ⇒ Object
Constructor Details
#initialize(code:, body:) ⇒ ResponseError
Returns a new instance of ResponseError.
30 31 32 33 |
# File 'lib/search_flip.rb', line 30 def initialize(code:, body:) @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
28 29 30 |
# File 'lib/search_flip.rb', line 28 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
28 29 30 |
# File 'lib/search_flip.rb', line 28 def code @code end |
Instance Method Details
#to_s ⇒ Object
35 36 37 |
# File 'lib/search_flip.rb', line 35 def to_s "#{self.class.name} (#{code}): #{body}" end |