ision$, $Source$, $Date$
use Moo;
use warnings;
use Carp;
use WWW::Mechanize;
use JSON::XS qw/decode_json encode_json/;
use Data::Dumper qw/Dumper/;
use English qw/ -no_match_vars /;
use App::BitBuck
ON
=head1 SUBROUTINES/METHODS
=head2 C<self ()>
Returns the "self" url.
=head2 C<TO_JSON ()>
Used by L<JSON::XS> for dumping the object
=head1 ATTRIBUTES
=head2 id
=head2 link
=head2 links
=
ision$, $Source$, $Date$
use Moo;
use warnings;
use Carp;
use WWW::Mechanize;
use JSON::XS qw/decode_json encode_json/;
use Data::Dumper qw/Dumper/;
use English qw/ -no_match_vars /;
use App::BitBuck
xt_page_start = 0;
my $limit = 30;
while ( ! $last_page ) {
my $json;
eval {
$json = $self->_get($self->url . "/projects?limit=$limit&start=$next_page_start");
return [];
};
push @projects, @{ $json->{values} };
$last_page = $json->{isLastPage};
$next_page_start = $json->{nextPageStart};
}
return map {App::BitBuck
ION
=head1 SUBROUTINES/METHODS
=head2 C<name ()>
=head2 C<timestamp ()>
=head2 C<TO_JSON ()>
Used by L<JSON::XS> for dumping the object
=head1 ATTRIBUTES
=head2 displayId
=head2 id
=head2 isD
=head2 C<to_name ()>
=head2 C<to_project ()>
=head2 C<to_repository ()>
=head2 C<TO_JSON ()>
Used by L<JSON::XS> for dumping the object
=head1 ATTRIBUTES
=head2 state
=head2 id
=head2 toRef
.
=head1 DESCRIPTION
=head1 SUBROUTINES/METHODS
=head2 C<BUILDARGS ()>
=head2 C<TO_JSON ()>
Used by L<JSON::XS> for dumping the object
=head1 ATTRIBUTES
=head2 description
=head2 id
=head2 k
::BitBucketCli::Link->new(%{ $args->{link} });
}
return $class->$orig($args);
};
sub TO_JSON {
my ($self) = @_;
return { %{ $self } };
}
1;
__END__
=head1 NAME
App::BitBucketCli:
will automatically get id, link and links attributes
# Also will autmatically be dumpable by L<JSON::XS>
=head1 DESCRIPTION
This is the base class for L<App::BitBucket::Project>, L<App::BitBucke
cket::Repository>, ...
=head1 SUBROUTINES/METHODS
=head2 C<BUILDARGS ()>
=head2 C<TO_JSON ()>
Used by L<JSON::XS> for dumping the object
=head1 ATTRIBUTES
=head2 id
Most BitBucket objects retur
/;
our $VERSION = 0.009;
has [qw/
rel
url
href
/] => (
is => 'rw',
);
sub TO_JSON {
my ($self) = @_;
return { %{ $self } };
}
1;
__END__
=head1 NAME
App::BitBucketCli:
nd exemplary as possible.
=head1 DESCRIPTION
=head1 SUBROUTINES/METHODS
=head2 C<TO_JSON ()>
Used by L<JSON::XS> for dumping the object
=head1 ATTRIBUTES
=head2 description
=head2 rel
=head2
App::BitBucketCli::Link->new($link);
}
}
return $class->$orig($arg);
};
sub TO_JSON {
my ($self) = @_;
return { %{ $self } };
}
1;
__END__
=head1 NAME
App::BitBucketCli:
.
=head1 DESCRIPTION
=head1 SUBROUTINES/METHODS
=head2 C<BUILDARGS ()>
=head2 C<TO_JSON ()>
Used by L<JSON::XS> for dumping the object
=head1 ATTRIBUTES
=head2 description
=head2 clone
=head