Sha256: c5d09ecb80cc85fa632a0ca498e93431044a9ddc91633b8049821b1bf7b34201
Contents?: true
Size: 956 Bytes
Versions: 18
Compression:
Stored size: 956 Bytes
Contents
module FbGraph class Thread < Node include Connections::Messages include Connections::Participants include Connections::FormerParticipants include Connections::Senders include Connections::Tags attr_accessor :snippet, :message_count, :unread_count, :updated_time def initialize(identifier, attributes = {}) super @snippet = attributes[:snippet] @message_count = attributes[:message_count] @unread_count = attributes[:unread_count].to_i if attributes[:updated_time] @updated_time = Time.parse(attributes[:updated_time]).utc end # cached connection @_messages_ = Collection.new(attributes[:messages]) @_participants_ = Collection.new(attributes[:participants]) @_former_participants_ = Collection.new(attributes[:former_articipants]) @_senders_ = Collection.new(attributes[:senders]) @_tags_ = Collection.new(attributes[:tags]) end end end
Version data entries
18 entries across 18 versions & 1 rubygems