Class: Ubiquitously::Faves::Post
- Inherits:
-
Base::Post
- Object
- Base::Post
- Ubiquitously::Faves::Post
- Defined in:
- lib/ubiquitously/faves.rb
Instance Attribute Summary
Attributes inherited from Base::Post
#categories, #description, #service_url, #tags, #title, #url, #user
Instance Method Summary collapse
Methods inherited from Base::Post
Methods included from Resourceful
Instance Method Details
#save ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/ubiquitously/faves.rb', line 24 def save return false unless valid? user.login page = agent.get("http://faves.com/createdot.aspx") form = page.form_with(:name => "createDotForm") form["noteText"] = description form["urlText"] = url form["subjectText"] = title form["tagsText"] = .join(", ") #form["rateSelect"] unless [:debug] == true page = form.submit end end |