Class: MessageBird::Error
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#description ⇒ Object
Returns the value of attribute description.
-
#parameter ⇒ Object
Returns the value of attribute parameter.
Instance Method Summary collapse
Methods inherited from Base
#initialize, #map_hash_elements_to_self, #value_to_time
Constructor Details
This class inherits a constructor from MessageBird::Base
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
7 8 9 |
# File 'lib/messagebird/error.rb', line 7 def code @code end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/messagebird/error.rb', line 7 def description @description end |
#parameter ⇒ Object
Returns the value of attribute parameter.
7 8 9 |
# File 'lib/messagebird/error.rb', line 7 def parameter @parameter end |
Instance Method Details
#message ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/messagebird/error.rb', line 9 def if parameter "#{description} (error code: #{code}, parameter: #{parameter})" else "#{description} (error code: #{code})" end end |