Method: Codesake::Core::Target#initialize

Defined in:
lib/codesake/core/target.rb

#initialize(options = {}) ⇒ Target

Returns a new instance of Target.



31
32
33
34
35
36
37
38
39
# File 'lib/codesake/core/target.rb', line 31

def initialize(options={})
  $logger = Codesake::Commons::Logging.instance
  @agent  = Mechanize.new
  @page   = nil

  @url      ||= options[:url]
  @username ||= options[:username]
  @password ||= options[:password]
end