Sha256: 0b3bbe4d16b333174db0dd82aab663a86b7081b692be4f7c970064218c81e7ac
Contents?: true
Size: 608 Bytes
Versions: 5
Compression:
Stored size: 608 Bytes
Contents
module FbGraph class Comment < Node include Connections::Likes attr_accessor :from, :message, :created_time, :like_count 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] @like_count = attributes[:likes] if attributes[:created_time] @created_time = Time.parse(attributes[:created_time]).utc end end end end
Version data entries
5 entries across 5 versions & 1 rubygems