Module: OodCore::DataFormatter
- Included in:
- Job::AccountInfo, Job::QueueInfo
- Defined in:
- lib/ood_core/data_formatter.rb
Instance Method Summary collapse
-
#upcase_accounts? ⇒ Boolean
Determine whether to upcase account strings when returning adapter#accounts.
Instance Method Details
#upcase_accounts? ⇒ Boolean
Determine whether to upcase account strings when returning adapter#accounts
4 5 6 7 8 9 10 11 12 |
# File 'lib/ood_core/data_formatter.rb', line 4 def upcase_accounts? env_var = ENV['OOD_UPCASE_ACCOUNTS'] if env_var.nil? || env_var.to_s.downcase == 'false' false else true end end |