summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-18 18:37:33 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-18 18:37:33 +0200
commitf0b6814200411e69cabdab419852dec2c11e4b04 (patch)
tree51f9d711e45177f6d5f6444986640565eca953ca /lib
parent07ab3f4e9b010a241e9e6091c2b5478e19f752d9 (diff)
HAFAS: Add get_service wrapper
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Helper/HAFAS.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm
index 2095fb7..1569208 100644
--- a/lib/Travelynx/Helper/HAFAS.pm
+++ b/lib/Travelynx/Helper/HAFAS.pm
@@ -33,6 +33,12 @@ sub new {
return bless( \%opt, $class );
}
+sub get_service {
+ my ( $self, $service ) = @_;
+
+ return Travel::Status::DE::HAFAS::get_service($service);
+}
+
sub get_json_p {
my ( $self, $url, %opt ) = @_;