Class: AhlScraper::Games::Coach

Inherits:
Resource
  • Object
show all
Defined in:
lib/ahl_scraper/resources/games/coach.rb

Instance Method Summary collapse

Methods inherited from Resource

#[], #each, #initialize, #inspect, #keys, #to_json, #values

Constructor Details

This class inherits a constructor from AhlScraper::Resource

Instance Method Details

#first_nameObject



6
7
8
# File 'lib/ahl_scraper/resources/games/coach.rb', line 6

def first_name
  @first_name ||= @raw_data[:firstName]
end

#last_nameObject



10
11
12
# File 'lib/ahl_scraper/resources/games/coach.rb', line 10

def last_name
  @last_name ||= @raw_data[:lastName]
end

#positionObject



14
15
16
# File 'lib/ahl_scraper/resources/games/coach.rb', line 14

def position
  @position ||= @raw_data[:role]
end

#team_idObject



18
19
20
# File 'lib/ahl_scraper/resources/games/coach.rb', line 18

def team_id
  @team_id ||= @opts[:team_id]
end