DAIA::Available - Information about a service that is currently unavailable


DAIA documentation Contained in the DAIA distribution.

Index


Code Index:

NAME

Top

DAIA::Available - Information about a service that is currently unavailable

DESCRIPTION

Top

This class is derived from DAIA::Availability - see that class for details. In addition there is the property delay that holds an XML Schema duration value or the special value unknown. Obviously the status property of a DAIA::Unavailable object is always 1.

PROPERTIES

Top

href

An URL to perform, register or reserve the service.

limitation

An array reference with limitations (DAIA::Limitation objects).

message

An array reference with DAIA::Message objects about this specific service.

delay

A delay as duration string (XML Schema xs:duration). To get the delay as DateTime::Duration object, use the parse_duration function that can be exported on request.

AUTHOR

Top

Jakob Voss <jakob.voss@gbv.de>

LICENSE

Top

Copyright (C) 2009-2010 by Verbundzentrale Goettingen (VZG) and Jakob Voss

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.


DAIA documentation Contained in the DAIA distribution.
package DAIA::Available;

use strict;
use base 'DAIA::Availability';
our $VERSION = '0.28';

our %PROPERTIES = (
    %DAIA::Availability::PROPERTIES,
    delay => { 
        filter => sub {
            return 'unknown' if lc("$_[0]") eq 'unknown';
            return DAIA::Availability::normalize_duration( $_[0] );
        }
    }
);

1;