Class: MailChecker::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/mail_checker/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Configuration

Returns a new instance of Configuration.

Yields:

  • (_self)

Yield Parameters:



6
7
8
# File 'lib/mail_checker/configuration.rb', line 6

def initialize
  yield self
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/mail_checker/configuration.rb', line 3

def host
  @host
end

#portObject

Returns the value of attribute port.



4
5
6
# File 'lib/mail_checker/configuration.rb', line 4

def port
  @port
end

Instance Method Details

#configureObject



10
11
12
# File 'lib/mail_checker/configuration.rb', line 10

def configure
  MailChecker::Mail.site = "#{host}:#{port}"
end