Class: Line::Bot::Event::Beacon Deprecated

Inherits:
Base
  • Object
show all
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

#[], #initialize, #to_hash

Constructor Details

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

Instance Method Details

#deviceMessageString

Returns:

  • (String)


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

def deviceMessage
  [@src['beacon']['dm']].pack('H*')
end

#hwidString

Returns:

  • (String)


32
33
34
# File 'lib/line/bot/v1/event/beacon.rb', line 32

def hwid
  @src['beacon']['hwid']
end

#typeString

Returns:

  • (String)


27
28
29
# File 'lib/line/bot/v1/event/beacon.rb', line 27

def type
  @src['beacon']['type']
end