Exception: Cielo24::CieloError
- Inherits:
-
StandardError
- Object
- StandardError
- Cielo24::CieloError
- Defined in:
- lib/cielo24/web_utils.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, comment) ⇒ CieloError
constructor
A new instance of CieloError.
- #to_s ⇒ Object
Constructor Details
#initialize(type, comment) ⇒ CieloError
Returns a new instance of CieloError.
69 70 71 72 |
# File 'lib/cielo24/web_utils.rb', line 69 def initialize(type, comment) super(comment) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
68 69 70 |
# File 'lib/cielo24/web_utils.rb', line 68 def type @type end |
Instance Method Details
#to_s ⇒ Object
74 75 76 |
# File 'lib/cielo24/web_utils.rb', line 74 def to_s "#{@type} - #{super.to_s}" end |