Class: AhlScraper::Games::OnIceSkater

Inherits:
Resource
  • Object
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

Constructor Details

This class inherits a constructor from AhlScraper::Resource

Instance Method Details

#first_nameObject



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_idObject



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

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

#idObject



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

def id
  @id ||= @raw_data[:id]
end

#jersey_numberObject



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_nameObject



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

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

#positionObject



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

Returns:

  • (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