Class: NationalRailWrapper::Feeds::HistoricalServicePerformance::Client

Inherits:
Client
  • Object
show all
Defined in:
lib/national_rail_wrapper/feeds/historical_service_performance/client.rb

Instance Method Summary collapse

Methods inherited from Client

#initialize

Constructor Details

This class inherits a constructor from NationalRailWrapper::Client

Instance Method Details

#service_details(rid, parse_result: false) ⇒ Object



6
7
8
9
# File 'lib/national_rail_wrapper/feeds/historical_service_performance/client.rb', line 6

def service_details(rid, parse_result: false)
  body = {rid: rid}
  HistoricalServicePerformance::Requests::ServiceDetails.new.run(auth_token: auth_token, body: body)
end

#service_metrics(body, parse_result: false) ⇒ Object



11
12
13
# File 'lib/national_rail_wrapper/feeds/historical_service_performance/client.rb', line 11

def service_metrics(body, parse_result: false)
  HistoricalServicePerformance::Requests::ServiceMetrics.new.run(auth_token: auth_token, body: body)
end