class RocketChat::ImSummary

Rocket.Chat IM Summary

Attributes

data[R]

Raw info data

Public Class Methods

new(data) click to toggle source

@param [Hash] data Raw info data

# File lib/rocket_chat/im_summary.rb, line 14
def initialize(data)
  @data = Util.stringify_hash_keys data
end

Public Instance Methods

joined() click to toggle source
# File lib/rocket_chat/im_summary.rb, line 18
def joined
  data['joined']
end
latest() click to toggle source

Last message sent

# File lib/rocket_chat/im_summary.rb, line 43
def latest
  data['latest']
end
members() click to toggle source

Qty of members in the chat

# File lib/rocket_chat/im_summary.rb, line 23
def members
  data['members']
end
msgs() click to toggle source

Qty of messages in the chat

# File lib/rocket_chat/im_summary.rb, line 38
def msgs
  data['msgs']
end
success() click to toggle source
# File lib/rocket_chat/im_summary.rb, line 52
def success
  data['success']
end
unreads() click to toggle source

Qty of unread messages

# File lib/rocket_chat/im_summary.rb, line 28
def unreads
  data['unreads']
end
unreads_from() click to toggle source

Timestamp

# File lib/rocket_chat/im_summary.rb, line 33
def unreads_from
  data['unreadsFrom']
end
user_mentions() click to toggle source

Qty of mentions

# File lib/rocket_chat/im_summary.rb, line 48
def user_mentions
  data['userMentions']
end