Sha256: b64e0f543dea99375eaca8ff8ddd10a24e181ad52ded706fcdc904e8ac2b0841
Contents?: true
Size: 586 Bytes
Versions: 1
Compression:
Stored size: 586 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]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.0.8 | lib/fb_graph/link.rb |