Class: Blogpost::Goo

Inherits:
Object
  • Object
show all
Defined in:
lib/blogpost/goo.rb

Class Method Summary collapse

Class Method Details

.post(opts = {}) ⇒ Object



3
4
5
6
7
8
# File 'lib/blogpost/goo.rb', line 3

def self.post(opts={})
  opts = Blogpost.options.merge(opts)
  host="http://blog.goo.ne.jp/xmlrpc.php"
  XMLRPC::Client.new2(host).call("metaWeblog.newPost", "", opts[:user], opts[:pass],
    {"title" => opts[:title],"description" => opts[:content]}, true)
end