Class: AhlScraper::Games::Coach
- Inherits:
-
Resource
- Object
- Resource
- AhlScraper::Games::Coach
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
Instance Method Details
#first_name ⇒ Object
6
7
8
|
# File 'lib/ahl_scraper/resources/games/coach.rb', line 6
def first_name
@first_name ||= @raw_data[:firstName]
end
|
#last_name ⇒ Object
10
11
12
|
# File 'lib/ahl_scraper/resources/games/coach.rb', line 10
def last_name
@last_name ||= @raw_data[:lastName]
end
|
#position ⇒ Object
14
15
16
|
# File 'lib/ahl_scraper/resources/games/coach.rb', line 14
def position
@position ||= @raw_data[:role]
end
|
#team_id ⇒ Object
18
19
20
|
# File 'lib/ahl_scraper/resources/games/coach.rb', line 18
def team_id
@team_id ||= @opts[:team_id]
end
|