Module: FbGraph::Connections::QuestionOptions

Included in:
Question
Defined in:
lib/fb_graph/connections/question_options.rb

Instance Method Summary collapse

Instance Method Details

#question_options(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/fb_graph/connections/question_options.rb', line 4

def question_options(options = {})
  question_options = self.connection :options, options
  question_options.map! do |question_option|
    QuestionOption.new question_option[:id], question_option.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end