Class: Line::Bot::Event::Things

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

Overview

Instance Method Summary collapse

Methods inherited from Base

#[], #initialize, #to_hash

Constructor Details

This class inherits a constructor from Line::Bot::Event::Base

Instance Method Details

#device_idObject



37
38
39
# File 'lib/line/bot/event/things.rb', line 37

def device_id
  @src['things']['deviceId']
end

#typeObject



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