Exception: Cielo24::WebError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cielo24/web_utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, comment) ⇒ WebError

Returns a new instance of WebError.



51
52
53
54
# File 'lib/cielo24/web_utils.rb', line 51

def initialize(type, comment)
  super comment
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



50
51
52
# File 'lib/cielo24/web_utils.rb', line 50

def type
  @type
end

Instance Method Details

#to_sObject



56
57
58
# File 'lib/cielo24/web_utils.rb', line 56

def to_s
  return @type + " - " + super.to_s
end