Sha256: 4ecaec6736b10a4d32eeefde2bf8b79cb429b672e4323d8b58e19dc75913c192

Contents?: true

Size: 583 Bytes

Versions: 1

Compression:

Stored size: 583 Bytes

Contents

module Ubiquitously
  module ScriptAndStyle
    class Account < Ubiquitously::Service::Account
    end
    
    class Post < Ubiquitously::Service::Post
      def create
        page = agent.get("http://scriptandstyle.com/submit")
        form = page.form_with(:name => "tdomf_form1")
        
        form["whoami_name"] = user.name
        form["whoami_email"] = user.email
        form["content_title"] = title
        form["whoami_webpage"] = url
        form["content_content"] = 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/script_and_style.rb