Module: IoTools::Helpers::MetaWeblog
- Included in:
- WordPressImporter
- Defined in:
- lib/io_tools/helpers/meta_weblog.rb
Instance Method Summary collapse
Instance Method Details
#recent_posts(num) ⇒ Object
13 14 15 |
# File 'lib/io_tools/helpers/meta_weblog.rb', line 13 def recent_posts num rpc :getRecentPosts, num end |
#rpc(method, *args) ⇒ Object
9 10 11 |
# File 'lib/io_tools/helpers/meta_weblog.rb', line 9 def rpc method, *args server.call("metaWeblog.#{method.to_s}", self., self.params['username'], self.params['password'], *args) end |
#server ⇒ Object
5 6 7 |
# File 'lib/io_tools/helpers/meta_weblog.rb', line 5 def server @server ||= XMLRPC::Client.new2(api_url, nil, 300) end |