Method: OData::Query#count

Defined in:
lib/odata/query.rb

#countInteger

Executes the query to get a count of entities.

Returns:

  • (Integer)


101
102
103
# File 'lib/odata/query.rb', line 101

def count
  entity_set.service.execute("#{self.to_s}/$count").body.to_i
end