Exception: Cielo24::WebError
- Inherits:
-
StandardError
- Object
- StandardError
- Cielo24::WebError
- Defined in:
- lib/cielo24/web_utils.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, comment) ⇒ WebError
constructor
A new instance of WebError.
- #to_s ⇒ Object
Constructor Details
#initialize(type, comment) ⇒ WebError
Returns a new instance of WebError.
49 50 51 52 |
# File 'lib/cielo24/web_utils.rb', line 49 def initialize(type, comment) super(comment) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
48 49 50 |
# File 'lib/cielo24/web_utils.rb', line 48 def type @type end |
Instance Method Details
#to_s ⇒ Object
54 55 56 |
# File 'lib/cielo24/web_utils.rb', line 54 def to_s return @type + ' - ' + super.to_s end |