Method: OpenC3::SortedModel.count

Defined in:
lib/openc3/models/sorted_model.rb

.count(scope:) ⇒ Integer

Returns count of the members stored under the primary key.

Returns:

  • (Integer)

    count of the members stored under the primary key



78
79
80
# File 'lib/openc3/models/sorted_model.rb', line 78

def self.count(scope:)
  Store.zcard(self.pk(scope))
end