| 1 | package Crop::File::DAV; | ||
| 2 | use base qw/ Crop::File /; | ||
| 3 | |||
| 4 | =begin nd | ||
| 5 | Class: Crop::File::DAV | ||
| 6 | File stored by remote DAV server. | ||
| 7 | =cut | ||
| 8 | |||
| 9 | use v5.14; | ||
| 10 | use warnings; | ||
| 11 | |||
| 12 | use Crop::Error; | ||
| 13 | use Crop::Util; | ||
| 14 | |||
| 15 | use Crop::Debug; | ||
| 16 | |||
| 17 | =begin nd | ||
| 18 | Constructor: new (@attr) | ||
| 19 | Set file type. | ||
| 20 | |||
| 21 | Specifying explicit type is not allowed. | ||
| 22 | |||
| 23 | Parameters: | ||
| 24 | %attr - class attributes | ||
| 25 | |||
| 26 | Returns: | ||
| 27 | $self - ok | ||
| 28 | undef - error | ||
| 29 | =cut | ||
| 30 | sub new { | ||
| 31 | my ($class, @attr) = @_; | ||
| 32 | my $attr = expose_hashes \@attr; | ||
| 33 | |||
| 34 | $class->SUPER::new( | ||
| 35 | %$attr, | ||
| 36 | warehouse => 'DAV', # parent Constructor replace this attribute to integer value | ||
| 37 | ); | ||
| 38 | } | ||
| 39 | |||
| 40 | 1; |