Skip to content

Commit

Permalink
fix: use to_hash to expose @src
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-Inoue committed Mar 16, 2021
1 parent 7a994fa commit 8cc3835
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/line/bot/event/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ class Base
def initialize(src)
@src = src
end
attr_reader :src

def [](key)
@src[key]
end

def to_hash
@src
end
end
end
end
Expand Down

0 comments on commit 8cc3835

Please sign in to comment.