summaryrefslogtreecommitdiff
path: root/lib/Net/HTTP/API/Meta/Method.pm
diff options
context:
space:
mode:
authorFranck Cuny <franck@lumberjaph.net>2015-02-16 20:21:15 -0800
committerFranck Cuny <franck@lumberjaph.net>2015-02-16 20:21:15 -0800
commitd535f0faf8fd05abd265caa9efbf0fab399acb53 (patch)
treece52072a494fa5a06054d7e1551248150b43a9b2 /lib/Net/HTTP/API/Meta/Method.pm
parentAdd __END__ section to all the lib files. (diff)
downloadnet-http-api-d535f0faf8fd05abd265caa9efbf0fab399acb53.tar.gz
Fix various deprecations.
enum are created with array ref, not array. Class::MOP::load_class is replaced with Class::Load::load_class.
Diffstat (limited to '')
-rw-r--r--lib/Net/HTTP/API/Meta/Method.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/HTTP/API/Meta/Method.pm b/lib/Net/HTTP/API/Meta/Method.pm
index 8dd7cb8..7294de3 100644
--- a/lib/Net/HTTP/API/Meta/Method.pm
+++ b/lib/Net/HTTP/API/Meta/Method.pm
@@ -15,7 +15,7 @@ subtype UriPath
=> where { $_ =~ m!^/! }
=> message {"path must start with /"};
-enum Method => qw(HEAD GET POST PUT DELETE);
+enum Method => [qw/HEAD GET POST PUT DELETE/];
has path => (is => 'ro', isa => 'UriPath', required => 1);
has method => (is => 'ro', isa => 'Method', required => 1);