Module: RubyStackoverflow::Client::QuestionHelper
- Included in:
- RubyStackoverflow::Client
- Defined in:
- lib/ruby-stackoverflow/client/question_helper.rb
Instance Method Summary collapse
- #answers_of_questions(ids, options = {}) ⇒ Object
- #comments_of_questions(ids, options = {}) ⇒ Object
- #featured_questions(options = {}) ⇒ Object
- #linked_questions(ids, options = {}) ⇒ Object
- #noanswered_questions(options = {}) ⇒ Object
- #questions(options = {}) ⇒ Object
- #questions_by_ids(ids, options = {}) ⇒ Object
- #related_questions(ids, options = {}) ⇒ Object
- #timeline_of_questions(ids, options = {}) ⇒ Object
- #unanswered_questions(options = {}) ⇒ Object
Instance Method Details
#answers_of_questions(ids, options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 13 def answers_of_questions(ids, ={}) url = join_ids(ids) + '/answers' question_response(, url) end |
#comments_of_questions(ids, options = {}) ⇒ Object
18 19 20 21 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 18 def comments_of_questions(ids, ={}) url = join_ids(ids) + '/comments' question_response(, url) end |
#featured_questions(options = {}) ⇒ Object
38 39 40 41 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 38 def featured_questions(={}) url = 'featured' question_response(, url) end |
#linked_questions(ids, options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 23 def linked_questions(ids, ={}) url = join_ids(ids)+'/linked' question_response(, url) end |
#noanswered_questions(options = {}) ⇒ Object
47 48 49 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 47 def noanswered_questions(={}) question_response(, 'no-answers') end |
#questions(options = {}) ⇒ Object
4 5 6 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 4 def questions( = {}) question_response() end |
#questions_by_ids(ids, options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 8 def questions_by_ids(ids , = {}) url = join_ids(ids) question_response(, url) end |
#related_questions(ids, options = {}) ⇒ Object
28 29 30 31 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 28 def (ids, ={}) url= join_ids(ids) + '/related' question_response(, url) end |
#timeline_of_questions(ids, options = {}) ⇒ Object
33 34 35 36 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 33 def timeline_of_questions(ids, ={}) url = join_ids(ids) + '/timeline' question_response(, url) end |
#unanswered_questions(options = {}) ⇒ Object
43 44 45 |
# File 'lib/ruby-stackoverflow/client/question_helper.rb', line 43 def unanswered_questions(={}) question_response(, 'unanswered') end |