Sha256: 3632bbed13e6f51b82224fa48e964db516a2d1e1dab404cf97820155ab120bee
Contents?: true
Size: 590 Bytes
Versions: 14
Compression:
Stored size: 590 Bytes
Contents
module FbGraph class Link < Node include Connections::Comments attr_accessor :from, :link, :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 @link = options[:link] @message = options[:message] if options[:updated_time] @updated_time = Time.parse(options[:updated_time]).utc end end end end
Version data entries
14 entries across 14 versions & 1 rubygems