| 1 | package Magpie::Resource::Abstract; | ||
| 2 | 47 | $Magpie::Resource::Abstract::VERSION = '1.141660'; | |
| 3 | # ABSTRACT: INCOMPLETE - Default Resource class. | ||
| 4 | |||
| 5 | 47 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 47 | extends 'Magpie::Resource'; | |
| 7 | 47 | ▶ | use Magpie::Constants; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | sub GET { | ||
| 10 | 106 | ▶ | my $self = shift; |
|
Subroutine
GET: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 106 | my $ctxt = shift; | |
| 12 | 106 | $self->parent_handler->resource($self); | |
| 13 | 106 | $self->data( $self->plack_response->body ); | |
| 14 | 106 | return OK; | |
| 15 | } | ||
| 16 | |||
| 17 | sub POST { | ||
| 18 | 3 | ▶ | my $self = shift; |
|
Subroutine
POST: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 19 | 3 | my $ctxt = shift; | |
| 20 | 3 | $self->parent_handler->resource($self); | |
| 21 | 3 | $self->data( $self->plack_response->body ); | |
| 22 | 3 | return OK; | |
| 23 | } | ||
| 24 | |||
| 25 | sub DELETE { | ||
| 26 | 0 | ▶ | my $self = shift; |
|
Subroutine
DELETE: not called CC=1 SCAR=6.9
| |||
| 27 | 0 | $self->parent_handler->resource($self); | |
| 28 | 0 | return OK; | |
| 29 | }; | ||
| 30 | |||
| 31 | sub PUT { | ||
| 32 | 1 | ▶ | my $self = shift; |
|
Subroutine
PUT: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 33 | 1 | $self->parent_handler->resource($self); | |
| 34 | 1 | return OK; | |
| 35 | }; | ||
| 36 | 47 | 1; | |
| 37 | |||
| 38 | |||
| 39 | =pod | ||
| 40 | |||
| 41 | =head1 NAME | ||
| 42 | |||
| 43 | Magpie::Resource::Abstract - INCOMPLETE - Default Resource class. | ||
| 44 | |||
| 45 | =head1 VERSION | ||
| 46 | |||
| 47 | version 1.141660 | ||
| 48 | |||
| 49 | # SEALSO: Magpie, Magpie::Resource | ||
| 50 | |||
| 51 | =head1 AUTHORS | ||
| 52 | |||
| 53 | =over 4 | ||
| 54 | |||
| 55 | =item * | ||
| 56 | |||
| 57 | Kip Hampton <kip.hampton@tamarou.com> | ||
| 58 | |||
| 59 | =item * | ||
| 60 | |||
| 61 | Chris Prather <chris.prather@tamarou.com> | ||
| 62 | |||
| 63 | =back | ||
| 64 | |||
| 65 | =head1 COPYRIGHT AND LICENSE | ||
| 66 | |||
| 67 | This software is copyright (c) 2011 by Tamarou, LLC. | ||
| 68 | |||
| 69 | This is free software; you can redistribute it and/or modify it under | ||
| 70 | the same terms as the Perl 5 programming language system itself. | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | |||
| 75 | __END__ | ||
| 76 | |||