Sha256: 1dd8bdf32f6b7a1d173fd64f2b72a9e6eaac3e8d37e3b082c7eb33883fd16f3f
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
module Ubiquitously module Sphinn class Account < Ubiquitously::Service::Account def login page = agent.get("http://sphinn.com/login/") form = page.forms.detect { |form| form.form_node["id"] == "thisform" } form["username"] = username form["password"] = password page = form.submit authorize!(true) end end class Post < Ubiquitously::Service::Post validates_presence_of :url, :title, :description, :tags def save(options = {}) return false unless valid? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ubiquitously-0.1.0 | lib/ubiquitously/services/sphinn.rb |