Method: LeanMotion::User::ClassMethods#count
- Defined in:
- lib/lean_motion/user.rb
#count(&block) ⇒ Object
56 57 58 59 60 61 62 63 |
# File 'lib/lean_motion/user.rb', line 56 def count(&block) cloud_query = query return cloud_query.countObjects unless block_given? cloud_query.countObjectsInBackgroundWithBlock(lambda do |count, error| block.call(count, error) end) end |