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