Class: EmmyExtends::Remailer::Response
- Inherits:
-
Object
- Object
- EmmyExtends::Remailer::Response
- Defined in:
- lib/emmy_extends/remailer/response.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ Response
constructor
A new instance of Response.
- #success? ⇒ Boolean
Constructor Details
#initialize(status) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/emmy_extends/remailer/response.rb', line 5 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/emmy_extends/remailer/response.rb', line 3 def status @status end |
Instance Method Details
#success? ⇒ Boolean
9 10 11 |
# File 'lib/emmy_extends/remailer/response.rb', line 9 def success? status == 250 end |