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(={}) $logger = Codesake::Commons::Logging.instance @agent = Mechanize.new @page = nil @url ||= [:url] @username ||= [:username] @password ||= [:password] end |