Class: Valanga::Client
- Inherits:
-
Object
- Object
- Valanga::Client
- Includes:
- MusicSearch
- Defined in:
- lib/valanga/client.rb
Constant Summary collapse
- LOGIN_PAGE =
"https://p.eagate.573.jp/gate/p/login.html"
Constants included from MusicSearch
Instance Attribute Summary collapse
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(username, password) ⇒ Client
constructor
A new instance of Client.
Methods included from MusicSearch
Constructor Details
#initialize(username, password) ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 18 19 20 |
# File 'lib/valanga/client.rb', line 12 def initialize(username, password) .register_driver :poltergeist do |app| ::Poltergeist::Driver.new(app, js_errors: false) end @session = ::Session.new(:poltergeist) login!(username, password) end |
Instance Attribute Details
#session ⇒ Object (readonly)
Returns the value of attribute session.
10 11 12 |
# File 'lib/valanga/client.rb', line 10 def session @session end |