Module: RubyStackoverflow::Client::UserHelper

Included in:
RubyStackoverflow::Client
Defined in:
lib/ruby-stackoverflow/client/user_helper.rb

Instance Method Summary collapse

Instance Method Details

#user_full_reputation_history(id, options = {}) ⇒ Object



143
144
145
146
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 143

def user_full_reputation_history(id, options = {})
  url = id + '/write-permissions'
  user_response(options, url)
end

#user_top_tags(id, options = {}) ⇒ Object



117
118
119
120
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 117

def user_top_tags(id, options ={})
  url = id + '/top-tags'
  user_response(options, url)
end

#user_top_tags_by_answers(id, options = {}) ⇒ Object



122
123
124
125
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 122

def user_top_tags_by_answers(id, options ={})
  url = id + '/top-answer-tags'
  user_response(options, url)
end

#user_top_tags_by_questions(id, options = {}) ⇒ Object



127
128
129
130
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 127

def user_top_tags_by_questions(id, options ={})
  url = id + '/top-question-tags'
  user_response(options, url)
end

#user_write_permissions(id, options = {}) ⇒ Object



138
139
140
141
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 138

def user_write_permissions(id, options = {})
  url = id + '/write-permissions'
  user_response(options, url)
end

#users(options = {}) ⇒ Object



4
5
6
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 4

def users(options = {})
  user_response(options)
end

#users_by_ids(ids, options = {}) ⇒ Object



8
9
10
11
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 8

def users_by_ids(ids, options = {})
  ids = join_ids(ids)
  user_response(options, ids)
end


65
66
67
68
69
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 65

def users_featured_questions(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/questions/featured'
  user_response(options, url)
end

#users_noanswers_questions(ids, options = {}) ⇒ Object



71
72
73
74
75
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 71

def users_noanswers_questions(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/questions/no-answers'
  user_response(options, url)
end

#users_notifications(id, options = {}) ⇒ Object



37
38
39
40
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 37

def users_notifications(id, options = {})
  url = id + '/notifications'
  user_response(options, url)
end

#users_questions(ids, options = {}) ⇒ Object



59
60
61
62
63
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 59

def users_questions(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/questions'
  user_response(options, url)
end

#users_reputations(ids, options = {}) ⇒ Object



89
90
91
92
93
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 89

def users_reputations(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/reputation'
  user_response(options, url)
end

#users_suggested_edits(ids, options = {}) ⇒ Object



95
96
97
98
99
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 95

def users_suggested_edits(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/suggested-edits'
  user_response(options, url)
end

#users_tags(ids, options = {}) ⇒ Object



101
102
103
104
105
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 101

def users_tags(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/tags'
  user_response(options, url)
end

#users_timeline(ids, options = {}) ⇒ Object



132
133
134
135
136
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 132

def users_timeline(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/timeline'
  user_response(options, url)
end

#users_top_answers_with_given_tags(id, tags, options = {}) ⇒ Object



107
108
109
110
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 107

def users_top_answers_with_given_tags(id, tags, options = {})
  url = id + '/tags/' + join_ids(tags) + '/top-answers'
  user_response(options, url)
end

#users_top_questions_with_given_tags(id, tags, options = {}) ⇒ Object



112
113
114
115
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 112

def users_top_questions_with_given_tags(id, tags, options = {})
  url = id + '/tags/' + join_ids(tags) + '/top-questions'
  user_response(options, url)
end

#users_unaccepted_questions(ids, options = {}) ⇒ Object



77
78
79
80
81
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 77

def users_unaccepted_questions(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/questions/unaccepted'
  user_response(options, url)
end

#users_unanswered_questions(ids, options = {}) ⇒ Object



83
84
85
86
87
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 83

def users_unanswered_questions(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/questions/unanswered'
  user_response(options, url)
end

#users_unread_notifications(id, options = {}) ⇒ Object



42
43
44
45
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 42

def users_unread_notifications(id, options = {})
  url = id + '/notifications/unread'
  user_response(options, url)
end

#users_with_answers(ids, options = {}) ⇒ Object



13
14
15
16
17
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 13

def users_with_answers(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/answers'
  user_response(options, url)
end

#users_with_badges(ids, options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 19

def users_with_badges(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/badges'
  user_response(options, url)
end

#users_with_comments(ids, options = {}) ⇒ Object



25
26
27
28
29
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 25

def users_with_comments(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/comments'
  user_response(options, url)
end

#users_with_favorites_questions(ids, options = {}) ⇒ Object



47
48
49
50
51
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 47

def users_with_favorites_questions(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/favorites'
  user_response(options, url)
end

#users_with_mentioned_comments(ids, options = {}) ⇒ Object



53
54
55
56
57
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 53

def users_with_mentioned_comments(ids, options = {})
  ids = join_ids(ids)
  url = ids + '/mentioned'
  user_response(options, url)
end

#users_with_replied_comments(ids, toid, options = {}) ⇒ Object



31
32
33
34
35
# File 'lib/ruby-stackoverflow/client/user_helper.rb', line 31

def users_with_replied_comments(ids, toid, options = {})
  ids = join_ids(ids)
  url = ids + '/comments/' + toid
  user_response(options, url)
end