Class: Hackershout::Provider::Rubyflow

Inherits:
Base
  • Object
show all
Defined in:
lib/hackershout/provider/rubyflow.rb

Constant Summary collapse

URL =
{
  :login => 'http://www.rubyflow.com/login'
}

Instance Attribute Summary

Attributes inherited from Base

#agent

Instance Method Summary collapse

Methods inherited from Base

#initialize, #publish

Methods included from Output

#blank, #print

Constructor Details

This class inherits a constructor from Hackershout::Provider::Base

Instance Method Details

#postObject



9
10
11
12
13
14
15
16
17
# File 'lib/hackershout/provider/rubyflow.rb', line 9

def post
  page = agent.get(URL[:login])
   = page.form_with(:action => '/session')
  . = @login
  .password = @password
  page = .submit
  page = page.link_with(:href => /items\/new/).click
  submit(page) 
end