Class: Hackershout::Provider::Rubyflow
- Defined in:
- lib/hackershout/provider/rubyflow.rb
Constant Summary collapse
- URL =
{ :login => 'http://www.rubyflow.com/login' }
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Output
Constructor Details
This class inherits a constructor from Hackershout::Provider::Base
Instance Method Details
#post ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/hackershout/provider/rubyflow.rb', line 9 def post page = agent.get(URL[:login]) login_form = page.form_with(:action => '/session') login_form.login = @login login_form.password = @password page = login_form.submit page = page.link_with(:href => /items\/new/).click submit(page) end |