Class: Kisaweb::Runner

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clubObject

Returns the value of attribute club.



3
4
5
# File 'lib/kisaweb/runner.rb', line 3

def club
  @club
end

#club_nameObject

Returns the value of attribute club_name.



3
4
5
# File 'lib/kisaweb/runner.rb', line 3

def club_name
  @club_name
end

#first_nameObject

Returns the value of attribute first_name.



3
4
5
# File 'lib/kisaweb/runner.rb', line 3

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



3
4
5
# File 'lib/kisaweb/runner.rb', line 3

def last_name
  @last_name
end

#license_numberObject

Returns the value of attribute license_number.



3
4
5
# File 'lib/kisaweb/runner.rb', line 3

def license_number
  @license_number
end