Method: OData::Query#count
- Defined in:
- lib/odata/query.rb
#count ⇒ Integer
Executes the query to get a count of entities.
101 102 103 |
# File 'lib/odata/query.rb', line 101 def count entity_set.service.execute("#{self.to_s}/$count").body.to_i end |