Sha256: a42aaa6adf123e680d8ad916d00f477d8ce77b654d8f981f9db3a33a0a3b80ca
Contents?: true
Size: 719 Bytes
Versions: 3
Compression:
Stored size: 719 Bytes
Contents
module FbGraph class Question < Node include Connections::QuestionOptions attr_accessor :from, :question, :created_time, :updated_time def initialize(identifier, attributes = {}) super @from = if attributes[:from] User.new(attributes[:from][:id], attributes[:from]) end @question = attributes[:question] @created_time = if attributes[:created_time] Time.parse(attributes[:created_time]).utc end @updated_time = if attributes[:updated_time] Time.parse(attributes[:updated_time]).utc end @_options_ = if attributes[:options] # cached options Collection.new(attributes[:options]) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-2.2.2 | lib/fb_graph/question.rb |
fb_graph-2.2.1 | lib/fb_graph/question.rb |
fb_graph-2.2.0 | lib/fb_graph/question.rb |