Sha256: c1b470ad5449fb594fee2e99a923b64d80dd2497b3b770dae4ae281477c0d5b0
Contents?: true
Size: 588 Bytes
Versions: 4
Compression:
Stored size: 588 Bytes
Contents
module FbGraph class Status < Node include Connections::Comments include Connections::Likes 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-0.8.0 | lib/fb_graph/status.rb |
fb_graph-0.7.3 | lib/fb_graph/status.rb |
fb_graph-0.7.2 | lib/fb_graph/status.rb |
fb_graph-0.7.1 | lib/fb_graph/status.rb |