Class: Ably::Models::Stats::MessageCount
- Inherits:
-
StatsStruct
- Object
- StatsStruct
- Ably::Models::Stats::MessageCount
- Defined in:
- lib/ably/models/stats_types.rb
Overview
MessageCount contains aggregate counts for messages and data transferred
Instance Attribute Summary collapse
-
#count ⇒ Integer
readonly
Count of all messages.
-
#data ⇒ Integer
readonly
Total data transferred for all messages in bytes.
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
#count ⇒ Integer (readonly)
Returns count of all messages.
66 67 68 |
# File 'lib/ably/models/stats_types.rb', line 66 class MessageCount < StatsStruct coerce_attributes :count, :data, into: IntegerDefaultZero end |
#data ⇒ Integer (readonly)
Returns total data transferred for all messages in bytes.
66 67 68 |
# File 'lib/ably/models/stats_types.rb', line 66 class MessageCount < StatsStruct coerce_attributes :count, :data, into: IntegerDefaultZero end |