Class: MailChecker::Configuration
- Inherits:
-
Object
- Object
- MailChecker::Configuration
- Defined in:
- lib/mail_checker/configuration.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
- #configure ⇒ Object
-
#initialize {|_self| ... } ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize {|_self| ... } ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 |
# File 'lib/mail_checker/configuration.rb', line 6 def initialize yield self end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/mail_checker/configuration.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/mail_checker/configuration.rb', line 4 def port @port end |
Instance Method Details
#configure ⇒ Object
10 11 12 |
# File 'lib/mail_checker/configuration.rb', line 10 def configure MailChecker::Mail.site = "#{host}:#{port}" end |