Sha256: d57fdab7847d9d4cd66890b211fa7f5aab3a168f6f84fd8abc375aaec2bdec64

Contents?: true

Size: 864 Bytes

Versions: 23

Compression:

Stored size: 864 Bytes

Contents

module PatronusFati::DataModels
  class Ssid
    include DataMapper::Resource

    include PatronusFati::DataModels::ExpirationAttributes
    include PatronusFati::DataModels::ReportedAttributes

    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

23 entries across 23 versions & 1 rubygems

Version Path
patronus_fati-0.9.11 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.10 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.9 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.8 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.7 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.6 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.5 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.4 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.3 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.2 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.1 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.9.0 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.18 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.17 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.16 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.15 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.14 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.13 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.12 lib/patronus_fati/data_models/ssid.rb
patronus_fati-0.8.11 lib/patronus_fati/data_models/ssid.rb