Class: AlphaMail::Result
- Inherits:
-
Object
- Object
- AlphaMail::Result
- Defined in:
- lib/alphamail.rb
Overview
Response class
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(error_code = -1,, message = 'Unknow error') ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(error_code = -1,, message = 'Unknow error') ⇒ Result
70 71 72 73 |
# File 'lib/alphamail.rb', line 70 def initialize(error_code = -1, = 'Unknow error') @error_code = error_code = end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
67 68 69 |
# File 'lib/alphamail.rb', line 67 def error_code @error_code end |
#message ⇒ Object
Returns the value of attribute message.
68 69 70 |
# File 'lib/alphamail.rb', line 68 def end |