Class: AhlScraper::Games::Star
Instance Method Summary
collapse
Methods inherited from Resource
#[], #each, #initialize, #inspect, #keys, #to_json, #values
Instance Method Details
#birthdate ⇒ Object
34
35
36
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 34
def birthdate
@birthdate ||= @raw_data[:player][:info][:birthDate]
end
|
#first_name ⇒ Object
14
15
16
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 14
def first_name
@first_name ||= @raw_data[:player][:info][:firstName]
end
|
#goalie? ⇒ Boolean
38
39
40
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 38
def goalie?
@goalie ||= @raw_data[:isGoalie]
end
|
#id ⇒ Object
6
7
8
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 6
def id
@id ||= @raw_data[:player][:info][:id]
end
|
#image_url ⇒ Object
42
43
44
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 42
def image_url
@image_url ||= @raw_data[:playerImage]
end
|
#jersey_name ⇒ Object
26
27
28
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 26
def jersey_name
@jersey_name ||= @raw_data[:player][:info][:jerseyNumber]
end
|
#last_name ⇒ Object
18
19
20
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 18
def last_name
@last_name ||= @raw_data[:player][:info][:lastName]
end
|
#number ⇒ Object
10
11
12
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 10
def number
@number ||= @opts[:number]
end
|
#position ⇒ Object
30
31
32
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 30
def position
@position ||= @raw_data[:player][:info][:position]
end
|
#team_id ⇒ Object
22
23
24
|
# File 'lib/ahl_scraper/resources/games/star.rb', line 22
def team_id
@team_id ||= @raw_data[:team][:id]
end
|