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

Inherits:
Base
  • Object
show all
Defined in:
lib/line/bot/v1/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



43
44
45
# File 'lib/line/bot/v1/event/things.rb', line 43

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

#typeObject



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

def type
  ThingsType.const_get(Util.camelize(@src['things']['type']))
rescue NameError
  ThingsType::Unsupport
end