| 1 | package Magpie::Resource::Abstract; | ||
| 2 | 48 | $Magpie::Resource::Abstract::VERSION = '1.163200'; | |
| 3 | # ABSTRACT: INCOMPLETE - Default Resource class. | ||
| 4 | |||
| 5 | 48 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 48 | extends 'Magpie::Resource'; | |
| 7 | 48 | ▶ | use Magpie::Constants; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 106 | ▶ | sub GET { |
|
Subroutine
GET: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | 106 | my $self = shift; | |
| 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 | 3 | ▶ | sub POST { |
|
Subroutine
POST: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 3 | my $self = shift; | |
| 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 | 0 | ▶ | sub DELETE { |
|
Subroutine
DELETE: not called CC=1 SCAR=6.9
| |||
| 26 | 0 | my $self = shift; | |
| 27 | 0 | $self->parent_handler->resource($self); | |
| 28 | 0 | return OK; | |
| 29 | }; | ||
| 30 | |||
| 31 | 1 | ▶ | sub PUT { |
|
Subroutine
PUT: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 32 | 1 | my $self = shift; | |
| 33 | 1 | $self->parent_handler->resource($self); | |
| 34 | 1 | return OK; | |
| 35 | }; | ||
| 36 | 48 | 1; | |
| 37 | |||
| 38 | __END__ | ||