class Ably::Models::Stats::StatsStruct

StatsStruct is a basic Struct like class that allows methods to be defined on the class that will be retuned co-erced objects from the underlying hash used to initialize the object.

This class provides a concise way to create classes that have fixed attributes and types

@example

class MessageCount < StatsStruct
  coerce_attributes :count, :data, into: Integer
end

@api private