Class: Ubiquitously::Shoutwire::Post
- Inherits:
-
Ubiquitously::Service::Post
- Object
- Base
- Ubiquitously::Service::Post
- Ubiquitously::Shoutwire::Post
- Defined in:
- lib/ubiquitously/services/shoutwire.rb
Instance Attribute Summary
Attributes inherited from Ubiquitously::Service::Post
#captcha, #categories, #description, #downvotes, #extension, #format, #image, #kind, #must_be_unique, #privacy, #rating, #remote, #service_id, #service_url, #slug, #source, #source_url, #state, #status, #tags, #title, #token, #upvotes, #url, #user, #vote
Instance Method Summary collapse
Methods inherited from Ubiquitously::Service::Post
Methods included from Loggable::Post
Methods included from Restful::Post
Methods included from Postable::Post
Methods included from Ownable::Post
Methods inherited from Base
Methods included from SubclassableCallbacks
Constructor Details
This class inherits a constructor from Ubiquitously::Service::Post
Instance Method Details
#create ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/ubiquitously/services/shoutwire.rb', line 16 def create page = agent.get("http://shoutwire.com/submit") form = page.form_with(:name => "TemplateMainForm") form["ctl06$txtLink"] = token[:url] page = form.submit form = page.form_with(:name => "TemplateMainForm") form["ctl06$txtTitle"] = token[:title] form["ctl06$txtDescription"] = token[:description] #page = form.submit # has a captcha, not done unless debug? page = form.submit end end |