Class: Line::Bot::Event::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/line/bot/event/base.rb

Direct Known Subclasses

Beacon, Follow, Join, Leave, Message, Postback, Unfollow

Instance Method Summary collapse

Constructor Details

#initialize(src) ⇒ Base

Returns a new instance of Base.



19
20
21
# File 'lib/line/bot/event/base.rb', line 19

def initialize(src)
  @src = src
end

Instance Method Details

#[](key) ⇒ Object



23
24
25
# File 'lib/line/bot/event/base.rb', line 23

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