diff options
author | dakkar <dakkar@thenautilus.net> | 2013-05-27 17:01:20 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2013-05-27 17:01:20 +0100 |
commit | 47d24b4cbea6d8364d0718e31cfd2fb92187b7ea (patch) | |
tree | af6fe6c112f4dd3a87d1606db6d03b48eeeccccb /lib/WebService/TFL/Bus/Response/BaseVersion.pm | |
parent | include busses in html (diff) | |
download | HomePanel-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.pm | 15 |
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; |