Module: FootballCli::Mapper

Included in:
Handler
Defined in:
lib/football_cli/mapper.rb

Instance Method Summary collapse

Instance Method Details

#get_league_id(code) ⇒ Object



5
6
7
# File 'lib/football_cli/mapper.rb', line 5

def get_league_id(code)
  league_info(code).dig(:id)
end

#get_qualification(code) ⇒ Object



13
14
15
# File 'lib/football_cli/mapper.rb', line 13

def get_qualification(code)
  league_info(code).dig(:qualification)
end

#get_team_id(code) ⇒ Object



9
10
11
# File 'lib/football_cli/mapper.rb', line 9

def get_team_id(code)
  team_info(code).dig(:id)
end