Method: Alien::AlienTag#initialize
- Defined in:
- lib/alien/alientag.rb
#initialize(taglist_entry) ⇒ AlienTag
Populate the instance variables from a taglist entry string. The following field separators are supported in the taglist entry string:
'tag:', 'disc:', 'last:', 'count:', 'ant:', 'proto:', 'speed:', 'rssi:'
33 34 35 36 37 38 39 40 |
# File 'lib/alien/alientag.rb', line 33 def initialize(taglist_entry) @disc = @last = @last_last = 0 @ant = @count = @proto = @rssi = @speed = @freq = 0 @speed_smooth = @speed_last = 0 @pos_smooth = @pos_last = @pos_min = 0 create(taglist_entry) end |