Class: Ubiquitously::Faves::Post

Inherits:
Base::Post show all
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

#agent, create

Methods included from Resourceful

included

Instance Method Details

#saveObject



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.
  
  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"] = tags.join(", ")
  #form["rateSelect"]

  unless options[:debug] == true
    page = form.submit
  end
end