Class: Rzd

Inherits:
Object
  • Object
show all
Defined in:
lib/rzd.rb,
lib/rzd/version.rb

Defined Under Namespace

Modules: Commands, VERSION Classes: Coach, Train

Class Method Summary collapse

Class Method Details

.get_coaches(from, to, date, train) ⇒ Object



13
14
15
16
17
# File 'lib/rzd.rb', line 13

def get_coaches( from, to, date, train )
  require 'rzd/commands/get_coaches'

  Rzd::Commands::GetCoaches.new.execute( from, to, date, train )
end

.get_trains(from, to, date) ⇒ Object



7
8
9
10
11
# File 'lib/rzd.rb', line 7

def get_trains( from, to, date )
  require 'rzd/commands/get_trains'

  Rzd::Commands::GetTrains.new.execute( from, to, date )
end