Exception: 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.
46 47 48 49 50 51 |
# File 'lib/search_flip.rb', line 46 def initialize(code:, body:) super @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
44 45 46 |
# File 'lib/search_flip.rb', line 44 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
44 45 46 |
# File 'lib/search_flip.rb', line 44 def code @code end |
Instance Method Details
#to_s ⇒ Object
53 54 55 |
# File 'lib/search_flip.rb', line 53 def to_s "#{self.class.name} (#{code}): #{body}" end |