Module: Rubypress::Comments

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

Instance Method Summary collapse

Instance Method Details

#deleteComment(options = {}) ⇒ Object



42
43
44
45
46
47
# File 'lib/rubypress/comments.rb', line 42

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

#editComment(options = {}) ⇒ Object



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

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

#getComment(options = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/rubypress/comments.rb', line 12

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

#getCommentCount(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/rubypress/comments.rb', line 5

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

#getComments(options = {}) ⇒ Object



19
20
21
22
23
24
# File 'lib/rubypress/comments.rb', line 19

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

#getCommentStatusList(options = {}) ⇒ Object



49
50
51
# File 'lib/rubypress/comments.rb', line 49

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

#newComment(options = {}) ⇒ Object



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

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