Skip to content

Commit 8cc3835

Browse files
committed
fix: use to_hash to expose @src
1 parent 7a994fa commit 8cc3835

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/line/bot/event/base.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ class Base
1919
def initialize(src)
2020
@src = src
2121
end
22-
attr_reader :src
2322

2423
def [](key)
2524
@src[key]
2625
end
26+
27+
def to_hash
28+
@src
29+
end
2730
end
2831
end
2932
end

0 commit comments

Comments
 (0)