Sha256: 7bcd82cea2625d1d4d5209b20659f0f172e49efd95168595427acfc703b98c7b
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
# frozen_string_literal: true module RocketChat # # Rocket.Chat IM Summary # class ImSummary # Raw info data attr_reader :data # # @param [Hash] data Raw info data # def initialize(data) @data = Util.stringify_hash_keys data end def joined data['joined'] end # Qty of menbers in the chat def members data['members'] end # Qty of unread messages def unreads data['unreads'] end # Timestamp def unreads_from data['unreadsFrom'] end # Qty of messages in the chat def msgs data['msgs'] end # Last message sent def latest data['latest'] end # Qty of mentions def user_mentions data['userMentions'] end def success data['success'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rocketchat-0.1.19 | lib/rocket_chat/im_summary.rb |