Browse files

Collection->elems

  • Loading branch information...
1 parent be8f69f commit ed039706f1ebc1aa0c68929865d0ac1d26c97bb1 @moritz committed Jun 19, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/WebService/Libris/Collection.pm
View
5 lib/WebService/Libris/Collection.pm
@@ -24,7 +24,6 @@ sub first {
type => $self->type,
id => $self->ids->[0],
);
-
}
sub next {
@@ -39,4 +38,8 @@ sub next {
}
}
+sub elems {
+ scalar @{ shift->ids }
+}
+
1;

0 comments on commit ed03970

Please sign in to comment.