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

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

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

#to_hashObject



27
28
29
# File 'lib/line/bot/event/base.rb', line 27

def to_hash
  @src
end