Class: Line::Bot::Event::Beacon Deprecated
- Defined in:
- lib/line/bot/v1/event/beacon.rb
Overview
Deprecated.
This is deprecated. Please use V2::Webhook::BeaconEvent instead.
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
37 38 39 |
# File 'lib/line/bot/v1/event/beacon.rb', line 37 def deviceMessage [@src['beacon']['dm']].pack('H*') end |
#hwid ⇒ String
32 33 34 |
# File 'lib/line/bot/v1/event/beacon.rb', line 32 def hwid @src['beacon']['hwid'] end |
#type ⇒ String
27 28 29 |
# File 'lib/line/bot/v1/event/beacon.rb', line 27 def type @src['beacon']['type'] end |