Module: Legion::Team
- Defined in:
- lib/legion/team.rb,
lib/legion/team/cost_attribution.rb
Defined Under Namespace
Modules: CostAttribution
Class Method Summary collapse
Class Method Details
.current ⇒ Object
8 9 10 |
# File 'lib/legion/team.rb', line 8 def current Legion::Settings.dig(:team, :name) || 'default' end |
.find(name) ⇒ Object
16 17 18 19 |
# File 'lib/legion/team.rb', line 16 def find(name) teams = Legion::Settings[:teams] || {} teams[name.to_sym] end |
.list ⇒ Object
21 22 23 |
# File 'lib/legion/team.rb', line 21 def list (Legion::Settings[:teams] || {}).keys.map(&:to_s) end |
.members ⇒ Object
12 13 14 |
# File 'lib/legion/team.rb', line 12 def members Legion::Settings.dig(:team, :members) || [] end |