Skip to content

Commit 004c731

Browse files
committed
added #to_hash to Stat
1 parent 568f650 commit 004c731

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/esdb/stat.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
module ESDB
22
class Stat < ESDB::Resource
3+
def to_hash
4+
get! unless @response
5+
{'stats' => JSON.parse(@response)}
6+
end
37
end
48
end

0 commit comments

Comments
 (0)