Module: Avm::Applications::Base::Organization

Defined in:
lib/avm/applications/base/organization.rb

Constant Summary collapse

DEFAULT_ORGANIZATION =
'_undefined_'
ORGANIZATION_CONFIG_KEY =
'organization'

Instance Method Summary collapse

Instance Method Details

#default_organizationString

Returns:

  • (String)


13
14
15
# File 'lib/avm/applications/base/organization.rb', line 13

def default_organization
  DEFAULT_ORGANIZATION
end

#organizationString

Returns:

  • (String)


23
24
25
# File 'lib/avm/applications/base/organization.rb', line 23

def organization
  organization_by_configuration || default_organization
end

#organization_by_configurationString?

Returns:

  • (String, nil)


18
19
20
# File 'lib/avm/applications/base/organization.rb', line 18

def organization_by_configuration
  entry(ORGANIZATION_CONFIG_KEY).optional_value
end