Method: Valanga::Client#initialize
- Defined in:
- lib/valanga/client.rb
#initialize(username = nil, password = nil) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/valanga/client.rb', line 13 def initialize(username = nil, password = nil) .register_driver :poltergeist do |app| ::Poltergeist::Driver.new(app, js_errors: false) end @session = ::Session.new(:poltergeist) @music_ids = {} login!(username, password) end |