summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/EFA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel/Status/DE/EFA.pm')
-rw-r--r--lib/Travel/Status/DE/EFA.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm
index 85aea8e..8591bc1 100644
--- a/lib/Travel/Status/DE/EFA.pm
+++ b/lib/Travel/Status/DE/EFA.pm
@@ -15,6 +15,7 @@ use JSON;
use Travel::Status::DE::EFA::Line;
use Travel::Status::DE::EFA::Departure;
use Travel::Status::DE::EFA::Stop;
+use Travel::Status::DE::EFA::Trip;
use LWP::UserAgent;
my %efa_instance = (
@@ -568,6 +569,12 @@ sub results {
return @results;
}
+sub result {
+ my ($self) = @_;
+
+ return Travel::Status::DE::EFA::Trip->new( json => $self->{response} );
+}
+
# static
sub get_efa_urls {
return map {