Class: AhlScraper::Games::OnIceSkater
- Inherits:
-
Resource
- Object
- Resource
- AhlScraper::Games::OnIceSkater
show all
- Defined in:
- lib/ahl_scraper/resources/games/on_ice_skater.rb
Instance Method Summary
collapse
Methods inherited from Resource
#[], #each, #initialize, #inspect, #keys, #to_json, #values
Instance Method Details
#first_name ⇒ Object
14
15
16
|
# File 'lib/ahl_scraper/resources/games/on_ice_skater.rb', line 14
def first_name
@first_name ||= @raw_data[:firstName]
end
|
#goal_id ⇒ Object
10
11
12
|
# File 'lib/ahl_scraper/resources/games/on_ice_skater.rb', line 10
def goal_id
@goal_id ||= @opts[:goal_id]
end
|
#id ⇒ Object
6
7
8
|
# File 'lib/ahl_scraper/resources/games/on_ice_skater.rb', line 6
def id
@id ||= @raw_data[:id]
end
|
#jersey_number ⇒ Object
22
23
24
|
# File 'lib/ahl_scraper/resources/games/on_ice_skater.rb', line 22
def jersey_number
@jersey_number ||= @raw_data[:jerseyNumber]
end
|
#last_name ⇒ Object
18
19
20
|
# File 'lib/ahl_scraper/resources/games/on_ice_skater.rb', line 18
def last_name
@last_name ||= @raw_data[:lastName]
end
|
#position ⇒ Object
26
27
28
|
# File 'lib/ahl_scraper/resources/games/on_ice_skater.rb', line 26
def position
@position ||= @raw_data[:position]
end
|
#scoring_team? ⇒ Boolean
30
31
32
|
# File 'lib/ahl_scraper/resources/games/on_ice_skater.rb', line 30
def scoring_team?
@scoring_team ||= @opts[:scoring_team]
end
|