Module: Avm::Sources::Base::Organizational

Defined in:
lib/avm/sources/base/organizational.rb

Constant Summary collapse

DEFAULT_ORGANIZATIONAL =
false
ORGANIZATIONAL_KEY =
'organizational'

Instance Method Summary collapse

Instance Method Details

#default_organizationalBoolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/avm/sources/base/organizational.rb', line 26

def default_organizational
  DEFAULT_ORGANIZATIONAL
end

#organizational?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
18
19
# File 'lib/avm/sources/base/organizational.rb', line 13

def organizational?
  if organizational_entry.found?
    organizational_entry.value.to_bool
  else
    default_organizational
  end
end

#organizational_entryObject



21
22
23
# File 'lib/avm/sources/base/organizational.rb', line 21

def organizational_entry
  configuration.entry(ORGANIZATIONAL_KEY)
end