Module: Comments

Included in:
Rubypress::Client
Defined in:
lib/rubypress/comments.rb

Instance Method Summary collapse

Instance Method Details

#deleteComment(options = {}) ⇒ Object



40
41
42
43
44
45
# File 'lib/rubypress/comments.rb', line 40

def deleteComment(options = {})
  default_options = {
    :comment_id => nil
  }.deep_merge!(options)
  execute('deleteComment', default_options)
end

#editComment(options = {}) ⇒ Object



32
33
34
35
36
37
38
# File 'lib/rubypress/comments.rb', line 32

def editComment(options = {})
  default_options = {
    :comment_id => nil,
    :comment => {}
  }.deep_merge!(options)
  execute('editComment', default_options)
end

#getComment(options = {}) ⇒ Object



10
11
12
13
14
15
# File 'lib/rubypress/comments.rb', line 10

def getComment(options = {})
  default_options = {
    :comment_id => nil
  }.deep_merge!(options)
  execute('getComment', default_options)
end

#getCommentCount(options = {}) ⇒ Object



3
4
5
6
7
8
# File 'lib/rubypress/comments.rb', line 3

def getCommentCount(options = {})
  default_options = {
    :post_id => nil
  }.deep_merge!(options)
  execute('getCommentCount', default_options)
end

#getComments(options = {}) ⇒ Object



17
18
19
20
21
22
# File 'lib/rubypress/comments.rb', line 17

def getComments(options = {})
  default_options = {
    :filter => {}
  }.deep_merge!(options)
  execute('getComments', default_options)
end

#getCommentStatusList(options = {}) ⇒ Object



47
48
49
# File 'lib/rubypress/comments.rb', line 47

def getCommentStatusList(options = {})
  execute('getCommentStatusList', options)
end

#newComment(options = {}) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/rubypress/comments.rb', line 24

def newComment(options = {})
  default_options = {
    :post_id => nil,
    :comment => {}
  }.deep_merge!(options)
  execute('newComment', default_options)
end