Exception: Bronto::Error
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
21 22 23 24 |
# File 'lib/bronto.rb', line 21 def initialize(code, ) self.code = code self. = end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
19 20 21 |
# File 'lib/bronto.rb', line 19 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
19 20 21 |
# File 'lib/bronto.rb', line 19 def @message end |
Instance Method Details
#to_s ⇒ Object
30 31 32 |
# File 'lib/bronto.rb', line 30 def to_s "#{code}: #{}" end |