lib/ronin/sessions/pop3.rb in ronin-0.2.2 vs lib/ronin/sessions/pop3.rb in ronin-0.2.3
- old
+ new
@@ -27,21 +27,13 @@
module Ronin
module Sessions
module POP3
include Session
- setup_session do
- parameter :host, :description => 'POP3 host'
- parameter :port, :description => 'POP3 port'
-
- parameter :pop3_user, :description => 'POP3 user'
- parameter :pop3_password, :description => 'POP3 password'
- end
-
protected
def pop3_connect(options={},&block)
- require_params :host
+ require_variable :host
options[:port] ||= @port
options[:user] ||= @pop3_user
options[:password] ||= @pop3_password