From 3a1b11f0a8684c7d50d5ccae126f9027b526f10a Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 4 Dec 2009 09:51:31 +0100 Subject: move meta class and method to new file, add meta to handle tests --- lib/MooseX/Net/API/Meta/Method.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/MooseX/Net/API/Meta/Method.pm (limited to 'lib/MooseX/Net/API/Meta/Method.pm') diff --git a/lib/MooseX/Net/API/Meta/Method.pm b/lib/MooseX/Net/API/Meta/Method.pm new file mode 100644 index 0000000..74f9a07 --- /dev/null +++ b/lib/MooseX/Net/API/Meta/Method.pm @@ -0,0 +1,18 @@ +package MooseX::Net::API::Meta::Method; + +use Moose; +extends 'Moose::Meta::Method'; + +has description => ( is => 'ro', isa => 'Str' ); +has path => ( is => 'ro', isa => 'Str', required => 1 ); +has method => ( is => 'ro', isa => 'Str', required => 1 ); +has params => ( is => 'ro', isa => 'ArrayRef', required => 0 ); +has required => ( is => 'ro', isa => 'ArrayRef', required => 0 ); + +sub new { + my $class = shift; + my %args = @_; + $class->SUPER::wrap(@_); +} + +1; -- cgit 1.4.1