Sha256: 18ea06afe33385c6cb8ef95441dffdb097411d89328bbc1742919e003bbd335f

Contents?: true

Size: 536 Bytes

Versions: 3

Compression:

Stored size: 536 Bytes

Contents

module FbGraph
  module Connections
    module QuestionOptions
      def options(opts = {})
        question_options = if @_options_ && opts.blank?
          self.connection(:question_options, opts.merge(:cached_collection => @_options_))
        else
          self.connection(:question_options, opts)
        end
        question_options.map! do |option|
          QuestionOption.new(option[:id], option.merge(
            :access_token => opts[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fb_graph-2.2.2 lib/fb_graph/connections/question_options.rb
fb_graph-2.2.1 lib/fb_graph/connections/question_options.rb
fb_graph-2.2.0 lib/fb_graph/connections/question_options.rb