summaryrefslogtreecommitdiff
path: root/lib/WebService/TFL/Bus/Response/URAVersion.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/WebService/TFL/Bus/Response/URAVersion.pm')
-rw-r--r--lib/WebService/TFL/Bus/Response/URAVersion.pm17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/WebService/TFL/Bus/Response/URAVersion.pm b/lib/WebService/TFL/Bus/Response/URAVersion.pm
new file mode 100644
index 0000000..38c8a62
--- /dev/null
+++ b/lib/WebService/TFL/Bus/Response/URAVersion.pm
@@ -0,0 +1,17 @@
+package WebService::TFL::Bus::Response::URAVersion;
+use Moose;
+use namespace::autoclean;
+
+for my $field (qw(Version TimeStamp)) {
+ has $field => (
+ is => 'ro',
+ );
+}
+
+sub new_from_array {
+ my ($class,$return_set,$array) = @_;
+
+ return $class->new({Version => $array->[1],TimeStamp => $array->[2]});
+}
+
+1;