Class: Ably::Models::Stats::MessageTypes
- Inherits:
-
StatsStruct
- Object
- StatsStruct
- Ably::Models::Stats::MessageTypes
- 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
-
#all ⇒ MessageCount
readonly
All messages count (includes both presence & messages).
-
#messages ⇒ MessageCount
readonly
Count of channel messages.
-
#presence ⇒ MessageCount
readonly
Count of presence messages.
Attributes inherited from StatsStruct
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
#all ⇒ MessageCount (readonly)
Returns 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 |
#messages ⇒ MessageCount (readonly)
Returns count of channel 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 |
#presence ⇒ MessageCount (readonly)
Returns count of 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 |