Exception: Cielo24::WebError
- Inherits:
-
CieloError
- Object
- StandardError
- CieloError
- Cielo24::WebError
- Defined in:
- lib/cielo24/web_utils.rb
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Attributes inherited from CieloError
Instance Method Summary collapse
-
#initialize(status_code, type, comment) ⇒ WebError
constructor
A new instance of WebError.
- #to_s ⇒ Object
Constructor Details
#initialize(status_code, type, comment) ⇒ WebError
Returns a new instance of WebError.
81 82 83 84 |
# File 'lib/cielo24/web_utils.rb', line 81 def initialize(status_code, type, comment) super(type, comment) @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
80 81 82 |
# File 'lib/cielo24/web_utils.rb', line 80 def status_code @status_code end |
Instance Method Details
#to_s ⇒ Object
86 87 88 |
# File 'lib/cielo24/web_utils.rb', line 86 def to_s "#{@status_code}:#{super.to_s}" end |