Class: Line::Bot::Event::Base
- Inherits:
-
Object
- Object
- Line::Bot::Event::Base
- Defined in:
- lib/line/bot/event/base.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(src) ⇒ Base
constructor
A new instance of Base.
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 |