summaryrefslogtreecommitdiff
path: root/lib/WebService/TFL/Bus/Response/BaseVersion.pm
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2013-05-27 17:01:20 +0100
committerdakkar <dakkar@thenautilus.net>2013-05-27 17:01:20 +0100
commit47d24b4cbea6d8364d0718e31cfd2fb92187b7ea (patch)
treeaf6fe6c112f4dd3a87d1606db6d03b48eeeccccb /lib/WebService/TFL/Bus/Response/BaseVersion.pm
parentinclude busses in html (diff)
downloadHomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.tar.gz
HomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.tar.bz2
HomePanel-47d24b4cbea6d8364d0718e31cfd2fb92187b7ea.zip
factored TFL client
Diffstat (limited to 'lib/WebService/TFL/Bus/Response/BaseVersion.pm')
-rw-r--r--lib/WebService/TFL/Bus/Response/BaseVersion.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/WebService/TFL/Bus/Response/BaseVersion.pm b/lib/WebService/TFL/Bus/Response/BaseVersion.pm
new file mode 100644
index 0000000..37b2ddb
--- /dev/null
+++ b/lib/WebService/TFL/Bus/Response/BaseVersion.pm
@@ -0,0 +1,15 @@
+package WebService::TFL::Bus::Response::BaseVersion;
+use Moose;
+use namespace::autoclean;
+
+has Version => (
+ is => 'ro',
+);
+
+sub new_from_array {
+ my ($class,$return_set,$array) = @_;
+
+ return $class->new({Version => $array->[1]});
+}
+
+1;