We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 568f650 commit 004c731Copy full SHA for 004c731
lib/esdb/stat.rb
@@ -1,4 +1,8 @@
1
module ESDB
2
class Stat < ESDB::Resource
3
+ def to_hash
4
+ get! unless @response
5
+ {'stats' => JSON.parse(@response)}
6
+ end
7
end
8
0 commit comments