Class: Rex::Proto::Kerberos::CredentialCache::Primitive::Krb5CcacheBool

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/rex/proto/kerberos/credential_cache/primitive/krb5_ccache_bool.rb

Instance Method Summary collapse

Instance Method Details

#getObject



11
12
13
# File 'lib/rex/proto/kerberos/credential_cache/primitive/krb5_ccache_bool.rb', line 11

def get
  self.data != 0
end

#set(v) ⇒ Object



15
16
17
# File 'lib/rex/proto/kerberos/credential_cache/primitive/krb5_ccache_bool.rb', line 15

def set(v)
  self.data = v ? 1 : 0
end