Exception: ExactTarget::Error
- Defined in:
- lib/exact_target/error.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id, description) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(id, description) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/exact_target/error.rb', line 6 def initialize(id, description) @id = id @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/exact_target/error.rb', line 4 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/exact_target/error.rb', line 4 def id @id end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/exact_target/error.rb', line 11 def to_s "ExactTarget error ##{id}: #{description}" end |