Sha256: ac9a4f4385d2f91723ad37034974fdfbe98feccaeea52eb5b39d04d9943ace1d
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
module ShackKit module Data class SOTACalls def self.update(source_file=SOURCES_DIR+"/masterSOTA.scp") calls = DB[:sota_calls] calls.delete File.foreach(source_file) do |line| callsign = line.strip calls.insert(callsign: callsign) if callsign =~ CALLSIGN_REGEX end calls.count end def self.include?(callsign) DB[:sota_calls].where(callsign: callsign).count > 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shack_kit-0.1.1 | lib/shack_kit/data/sota_calls.rb |