Class: Kisaweb::Runner
- Inherits:
-
Object
- Object
- Kisaweb::Runner
- Defined in:
- lib/kisaweb/runner.rb
Instance Attribute Summary collapse
-
#club ⇒ Object
Returns the value of attribute club.
-
#club_name ⇒ Object
Returns the value of attribute club_name.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#license_number ⇒ Object
Returns the value of attribute license_number.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(*args) ⇒ Runner
Returns a new instance of Runner.
5 6 7 8 |
# File 'lib/kisaweb/runner.rb', line 5 def initialize(*args) self.last_name, self.first_name, self.club_name, self.license_number = *args self.club = Club.find(club_name) end |
Instance Attribute Details
#club ⇒ Object
Returns the value of attribute club.
3 4 5 |
# File 'lib/kisaweb/runner.rb', line 3 def club @club end |
#club_name ⇒ Object
Returns the value of attribute club_name.
3 4 5 |
# File 'lib/kisaweb/runner.rb', line 3 def club_name @club_name end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/kisaweb/runner.rb', line 3 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/kisaweb/runner.rb', line 3 def last_name @last_name end |
#license_number ⇒ Object
Returns the value of attribute license_number.
3 4 5 |
# File 'lib/kisaweb/runner.rb', line 3 def license_number @license_number end |