module RubyStackoverflow::Client::QuestionHelper
Public Instance Methods
answers_of_questions(ids, options={})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 13 def answers_of_questions(ids, options={}) url = join_ids(ids) + '/answers' question_response(options, url) end
comments_of_questions(ids, options={})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 18 def comments_of_questions(ids, options={}) url = join_ids(ids) + '/comments' question_response(options, url) end
featured_questions(options={})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 38 def featured_questions(options={}) url = 'featured' question_response(options, url) end
linked_questions(ids, options={})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 23 def linked_questions(ids, options={}) url = join_ids(ids)+'/linked' question_response(options, url) end
noanswered_questions(options={})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 47 def noanswered_questions(options={}) question_response(options, 'no-answers') end
questions(options = {})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 4 def questions(options = {}) question_response(options) end
questions_by_ids(ids , options = {})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 8 def questions_by_ids(ids , options = {}) url = join_ids(ids) question_response(options, url) end
timeline_of_questions(ids, options={})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 33 def timeline_of_questions(ids, options={}) url = join_ids(ids) + '/timeline' question_response(options, url) end
unanswered_questions(options={})
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 43 def unanswered_questions(options={}) question_response(options, 'unanswered') end
Private Instance Methods
question_response(options={}, url='')
click to toggle source
# File lib/ruby-stackoverflow/client/question_helper.rb, line 53 def question_response(options={}, url='') url = 'questions/' + url getr(url, 'question', options) end