lib/noip.rb in noip-0.1 vs lib/noip.rb in noip-0.2

- old
+ new

@@ -1,13 +1,17 @@ require 'noip/agent' +require 'noip/cli' require 'noip/credentials' require 'noip/remote_ip' require 'noip/updater' require 'noip/version' module Noip - def self.update - Noip::Updater.new.update + def self.update(username, password, host) + credentials = Noip::Credentials.new(username, password, host) + updater = Noip::Updater.new(credentials) + + updater.update end end