Class: FailMail::Base
- Inherits:
-
Object
- Object
- FailMail::Base
- Defined in:
- lib/fail_mail/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #call(*args, &block) ⇒ Object
-
#initialize(client = FailMail.client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(client = FailMail.client) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/fail_mail/base.rb', line 5 def initialize client=FailMail.client @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/fail_mail/base.rb', line 3 def client @client end |
Instance Method Details
#call(*args, &block) ⇒ Object
9 10 11 |
# File 'lib/fail_mail/base.rb', line 9 def call *args, &block client.call *args, &block end |