lib/noip/credentials.rb in noip-0.1 vs lib/noip/credentials.rb in noip-0.2
- old
+ new
@@ -1,11 +1,11 @@
module Noip
class Credentials
- def initialize(username = nil, password = nil, host = nil)
- @username = username || ENV['NOIP_USERNAME']
- @password = password || ENV['NOIP_PASSWORD']
- @host = host || ENV['NOIP_HOST']
+ def initialize(username, password, host)
+ @username = username
+ @password = password
+ @host = host
end
attr_reader :username, :password, :host
end