Sha256: 3a530bda12485e1ee8ea5c2096ffefe27e5ea393feec71bebb85b44c5f09239b
Contents?: true
Size: 705 Bytes
Versions: 12
Compression:
Stored size: 705 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 # cached connection if attributes[:options] cache_collection attributes, :options end end end end
Version data entries
12 entries across 12 versions & 1 rubygems