Class: Line::Bot::Event::Things
- Defined in:
- lib/line/bot/event/things.rb
Overview
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Line::Bot::Event::Base
Instance Method Details
#device_id ⇒ Object
37 38 39 |
# File 'lib/line/bot/event/things.rb', line 37 def device_id @src['things']['deviceId'] end |
#type ⇒ Object
31 32 33 34 35 |
# File 'lib/line/bot/event/things.rb', line 31 def type ThingsType.const_get(Util.camelize(@src['things']['type'])) rescue NameError ThingsType::Unsupport end |