Class: Ably::Models::Stats::MessageTypes

Inherits:
StatsStruct show all
Defined in:
lib/submodules/ably-ruby/lib/ably/models/stats_types.rb

Overview

MessageTypes contains a breakdown of summary stats data for different (message vs presence) message types

Instance Attribute Summary collapse

Attributes inherited from StatsStruct

#hash

Method Summary

Methods inherited from StatsStruct

coerce_attributes, #initialize, type_klass

Constructor Details

This class inherits a constructor from Ably::Models::Stats::StatsStruct

Instance Attribute Details

#allMessageCount (readonly)

Returns all messages count (includes both presence & messages).

Returns:

  • (MessageCount)

    all messages count (includes both presence & messages)



114
115
116
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 114

class MessageTypes < StatsStruct
  coerce_attributes :messages, :presence, :all, into: MessageCount
end

#messagesMessageCount (readonly)

Returns count of channel messages.

Returns:



114
115
116
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 114

class MessageTypes < StatsStruct
  coerce_attributes :messages, :presence, :all, into: MessageCount
end

#presenceMessageCount (readonly)

Returns count of presence messages.

Returns:



114
115
116
# File 'lib/submodules/ably-ruby/lib/ably/models/stats_types.rb', line 114

class MessageTypes < StatsStruct
  coerce_attributes :messages, :presence, :all, into: MessageCount
end