Sha256: 883c414bf93ba1fd87db509b98583276fb4a1d54615cad1cc31f7582d1a2e02e
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
module Ubiquitously module Kailoon class Account < Ubiquitously::Service::Account def login return true end end class Post < Ubiquitously::Service::Post def create page = agent.get("http://kailoon.com/web-design-news/") form = page.forms.detect { |form| form.form_node["id"] == "commentform" } # weird, but this is how they're doing it form["author"] = title form["url"] = url form["email"] = user.email # 200 word max form["comment"] = description page = form.submit true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.1.0 | lib/ubiquitously/services/kailoon.rb |