Class: Line::Bot::Event::Beacon
- Defined in:
- lib/line/bot/event/beacon.rb
Overview
Event object for when a user enters the range of a LINE Beacon.
developers.line.biz/en/reference/messaging-api/#beacon-event
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Line::Bot::Event::Base
Instance Method Details
#deviceMessage ⇒ String
33 34 35 |
# File 'lib/line/bot/event/beacon.rb', line 33 def deviceMessage [@src['beacon']['dm']].pack('H*') end |
#hwid ⇒ String
28 29 30 |
# File 'lib/line/bot/event/beacon.rb', line 28 def hwid @src['beacon']['hwid'] end |
#type ⇒ String
23 24 25 |
# File 'lib/line/bot/event/beacon.rb', line 23 def type @src['beacon']['type'] end |