Sha256: 0ec0f0ffc6fee763916572cb694d3d73eff96754e20f3c1474e0b7d59b357109
Contents?: true
Size: 853 Bytes
Versions: 34
Compression:
Stored size: 853 Bytes
Contents
module FbGraph class Note < Node include Connections::Comments include Connections::Likes attr_accessor :from, :subject, :message, :created_time, :updated_time, :icon def initialize(identifier, attributes = {}) super if (from = attributes[:from]) @from = if from[:category] Page.new(from[:id], from) else User.new(from[:id], from) end end @subject = attributes[:subject] @message = attributes[:message] if attributes[:created_time] @created_time = Time.parse(attributes[:created_time]).utc end if attributes[:updated_time] @updated_time = Time.parse(attributes[:updated_time]).utc end @icon = attributes[:icon] # cached connection @_comments_ = Collection.new(attributes[:comments]) end end end
Version data entries
34 entries across 34 versions & 1 rubygems