OpenGbg::Service::Bridge::GetOpenedStatus - A list of bridge openings
Version 0.1404, released 2018-05-19.
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;
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.
Erik Carlsson <email@example.com>
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.