Sha256: 37e68ccc7f0f7a9979181e41e4787912b1ded8b5859923d052cf6d39683a41f8
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
module FbGraph class Note < Node include Connections::Comments attr_accessor :from, :subject, :message, :created_time, :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 @subject = options[:subject] @message = options[:message] if options[:created_time] @created_time = Time.parse(options[:created_time]) end 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/note.rb |