Class: RunnersUpdate::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/runners_update/runner.rb

Overview

測定ポイントクラス

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, split, lap, pass) ⇒ Point

initialize

Parameters:

  • name (String)

    測定ポイント名

  • split (String)

    スプリットタイム

  • lap (String)

    ラップタイム

  • pass (String)

    通過タイム



31
32
33
34
35
36
# File 'lib/runners_update/runner.rb', line 31

def initialize(name, split, lap, pass)
  @name = name
  @split = split
  @lap = lap
  @pass = pass
end

Instance Attribute Details

#lapObject

Returns the value of attribute lap.



24
25
26
# File 'lib/runners_update/runner.rb', line 24

def lap
  @lap
end

#nameObject

Returns the value of attribute name.



24
25
26
# File 'lib/runners_update/runner.rb', line 24

def name
  @name
end

#passObject

Returns the value of attribute pass.



24
25
26
# File 'lib/runners_update/runner.rb', line 24

def pass
  @pass
end

#splitObject

Returns the value of attribute split.



24
25
26
# File 'lib/runners_update/runner.rb', line 24

def split
  @split
end