Class: Line::Bot::Event::Things
- Inherits:
-
Base
- Object
- Base
- Line::Bot::Event::Things
show all
- Defined in:
- lib/line/bot/event/things.rb
Overview
LINE Things API related events.
Instance Method Summary
collapse
Methods inherited from Base
#[], #initialize, #to_hash
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
|