Module: Couchbase::Operations::Stats
- Defined in:
- lib/couchbase/operations/stats.rb
Instance Method Summary collapse
Instance Method Details
#stats(statname = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/couchbase/operations/stats.rb', line 4 def stats(statname = nil) sync_block_error if !async? && block_given? stats = if statname.nil? client.getStats else client.getStats(statname) end stats.first.last.to_hash end |