Module: Rubypress::Users
- Included in:
- Client
- Defined in:
- lib/rubypress/users.rb
Instance Method Summary collapse
- #editProfile(options = {}) ⇒ Object
- #getAuthors(options = {}) ⇒ Object
- #getProfile(options = {}) ⇒ Object
- #getUser(options = {}) ⇒ Object
- #getUsers(options = {}) ⇒ Object
- #getUsersBlogs ⇒ Object
Instance Method Details
#editProfile(options = {}) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/rubypress/users.rb', line 31 def editProfile( = {}) = { :content => {} }.deep_merge!() execute('editProfile', ) end |
#getAuthors(options = {}) ⇒ Object
38 39 40 |
# File 'lib/rubypress/users.rb', line 38 def getAuthors( = {}) execute('getAuthors', ) end |
#getProfile(options = {}) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/rubypress/users.rb', line 24 def getProfile( = {}) = { :fields => [] }.deep_merge!() execute('getProfile', ) end |
#getUser(options = {}) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rubypress/users.rb', line 9 def getUser( = {}) = { :user_id => nil, :fields => [] }.deep_merge!() execute('getUser', ) end |
#getUsers(options = {}) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/rubypress/users.rb', line 17 def getUsers( = {}) = { :filter => {} }.deep_merge!() execute('getUsers', ) end |
#getUsersBlogs ⇒ Object
5 6 7 |
# File 'lib/rubypress/users.rb', line 5 def getUsersBlogs self.connection.call('wp.getUsersBlogs', self.username, self.password) end |