Class: Rubygoal::CoachLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygoal/coach_loader.rb

Constant Summary collapse

DEFAULT_COACH_DEFINITIONS =
{
  home: CoachDefinitionHome,
  away: CoachDefinitionAway
}

Instance Method Summary collapse

Constructor Details

#initialize(side) ⇒ CoachLoader

Returns a new instance of CoachLoader.



12
13
14
# File 'lib/rubygoal/coach_loader.rb', line 12

def initialize(side)
  @side = side
end

Instance Method Details

#coachObject



16
17
18
# File 'lib/rubygoal/coach_loader.rb', line 16

def coach
  Coach.new(load_definition_coach)
end