class AhlScraper::IceTimeHelper

Attributes

time[R]

Public Class Methods

new(time) click to toggle source
# File lib/ahl_scraper/helpers/ice_time_helper.rb, line 7
def initialize(time)
  @time = time
end

Public Instance Methods

to_sec()
Alias for: to_seconds
to_seconds() click to toggle source
# File lib/ahl_scraper/helpers/ice_time_helper.rb, line 11
def to_seconds
  ice_time = time.split(":")
  ice_time[0].to_i * 60 + ice_time[1].to_i
end
Also aliased as: to_sec