Sha256: ec373cf5998e145e14b9df1337a960f48d945d150519d8978b47c77b9cb9d60e
Contents?: true
Size: 807 Bytes
Versions: 19
Compression:
Stored size: 807 Bytes
Contents
module PatronusFati::DataModels class Ssid include DataMapper::Resource include PatronusFati::DataModels::ExpirationAttributes property :id, Serial property :beacon_rate, Integer property :beacon_info, String property :cloaked, Boolean, :default => false property :essid, String, :length => 64, :index => true property :crypt_set, CryptFlags property :max_rate, Integer belongs_to :access_point def self.current_expiration_threshold Time.now.to_i - PatronusFati::SSID_EXPIRATION end def full_state { beacon_info: beacon_info, beacon_rate: beacon_rate, cloaked: cloaked, crypt_set: crypt_set, essid: essid, max_rate: max_rate } end end end
Version data entries
19 entries across 19 versions & 1 rubygems