Method: Tourist#initialize
- Defined in:
- lib/tourist.rb
#initialize(host, tours, number, tourist_id) ⇒ Tourist
Returns a new instance of Tourist.
28 29 30 31 |
# File 'lib/tourist.rb', line 28 def initialize(host, tours, number, tourist_id) @host, @tours, @number, @tourist_id = host, tours, number, tourist_id @tour_type = self.send(:class).to_s end |