NAME
OpenGbg::Service::Bridge::GetOpenedStatus
SYNOPSIS
my $bridge = OpenGbg->new->bridge;
my $get_opened_status = $bridge->get_opened_status('2014-10-15', '2014-11-01');
my $opening = $get_opened_status->bridge_openings->get_by_index(5);
printf 'It was %s at %s on %s', $opening->was_open ? 'open' : 'closed', $opening->timestamp->hms, $opening->timestamp->ymd;
METHODS
bridge_openings
The service returns a list of status changes. The list is prepended with the status at midnight of the start date (given to get_opened_status in Bridge), and appended with the status at midnight to the end date.
Returns the list of status changes in the response in a OpenGbg::Service::Bridge::BridgeOpenings object.
AUTHOR
Erik Carlsson <info@code301.com>
COPYRIGHT
Copyright 2014 - Erik Carlsson
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.