class AhlScraper::Games::Star

Public Instance Methods

birthdate() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 34
def birthdate
  @birthdate ||= @raw_data[:player][:info][:birthDate]
end
first_name() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 14
def first_name
  @first_name ||= @raw_data[:player][:info][:firstName]
end
goalie?() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 38
def goalie?
  @goalie ||= @raw_data[:isGoalie]
end
id() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 6
def id
  @id ||= @raw_data[:player][:info][:id]
end
image_url() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 42
def image_url
  @image_url ||= @raw_data[:playerImage]
end
jersey_name() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 26
def jersey_name
  @jersey_name ||= @raw_data[:player][:info][:jerseyNumber]
end
last_name() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 18
def last_name
  @last_name ||= @raw_data[:player][:info][:lastName]
end
number() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 10
def number
  @number ||= @opts[:number]
end
position() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 30
def position
  @position ||= @raw_data[:player][:info][:position]
end
team_id() click to toggle source
# File lib/ahl_scraper/resources/games/star.rb, line 22
def team_id
  @team_id ||= @raw_data[:team][:id]
end