Class: WordpressXmlRpc

Inherits:
Object
  • Object
show all
Includes:
WpApi
Defined in:
lib/wordpress-xmlrpc-api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from WpApi

#deleteCategory, #deleteComment, #deletePage, #deletePost, #deleteTerm, #editComment, #editPage, #editPost, #editProfile, #editTerm, #getAuthors, #getCategories, #getComment, #getCommentCount, #getCommentStatusList, #getComments, #getMediaItem, #getMediaLibrary, #getOptions, #getPage, #getPageList, #getPageStatusList, #getPageTemplates, #getPages, #getPost, #getPostFormats, #getPostStatusList, #getPostType, #getPostTypes, #getPosts, #getProfile, #getRevisions, #getTags, #getTaxonomies, #getTaxonomy, #getTerm, #getTerms, #getUser, #getUsers, #getUsersBlogs, #newCategory, #newComment, #newPage, #newPost, #newTerm, #restoreRevision, #setOptions, #suggestCategories, #uploadFile

Constructor Details

#initialize(url, username, password) ⇒ WordpressXmlRpc

Returns a new instance of WordpressXmlRpc.



9
10
11
12
13
14
# File 'lib/wordpress-xmlrpc-api.rb', line 9

def initialize(url, username, password)
  @url = url
  @username = username
  @password = password
  @srv = XMLRPC::Client.new2(@url)
end

Instance Attribute Details

#srvObject (readonly)

Returns the value of attribute srv.



7
8
9
# File 'lib/wordpress-xmlrpc-api.rb', line 7

def srv
  @srv
end