Sha256: cfe365fa2c7d971c2e3fa39a0c0974e5f048a119f349c881e823a17484a42e86
Contents?: true
Size: 557 Bytes
Versions: 14
Compression:
Stored size: 557 Bytes
Contents
module FbGraph class Status < Node include Connections::Comments attr_accessor :from, :message, :updated_time def initialize(identifier, options = {}) super if (from = options[:from]) @from = if from[:category] FbGraph::Page.new(from.delete(:id), from) else FbGraph::User.new(from.delete(:id), from) end end @message = options[:message] if (updated_time = options.delete(:updated_time)) @updated_time = Time.parse(updated_time).utc end end end end
Version data entries
14 entries across 14 versions & 1 rubygems