Class: Agent
Instance Method Summary collapse
- #grade ⇒ Object
-
#initialize ⇒ Agent
constructor
A new instance of Agent.
- #login ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ Agent
Returns a new instance of Agent.
9 10 11 |
# File 'lib/academico.rb', line 9 def initialize start end |
Instance Method Details
#grade ⇒ Object
27 28 29 |
# File 'lib/academico.rb', line 27 def grade Grade.new(self).printable_grade end |
#login ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/academico.rb', line 19 def login visit '/qacademico/index.asp?t=1001' user = User.info fill_in 'LOGIN', with: user[:id] fill_in 'SENHA', with: user[:pass] 'OK' end |
#start ⇒ Object
13 14 15 16 17 |
# File 'lib/academico.rb', line 13 def start Capybara.run_server = false Capybara.current_driver = :webkit Capybara.app_host = 'http://www.academico.iff.edu.br/' end |