Sha256: fb6115c459995dd14d7013efdfff53c09cabba527560911f8943694a9f4015b0

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

module Ubiquitously
  module Digzign
    class Account < Ubiquitously::Service::Account
      def login
        return true if logged_in?
        
        page = agent.get("http://digzign.com/login")
        form = page.form_with(:name => "loginform")
        form["username"] = username
        form["password"] = password
        page = form.submit
      end
    end
    
    class Post < Ubiquitously::Service::Post
      def save(options = {})
        return false if !valid?
        
        authorize
        
        page = agent.get("")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubiquitously-0.1.0 lib/ubiquitously/services/digzign.rb