| 1 | package Mastodon::Entity::Report; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.018'; # TRIAL | |
| 7 | |||
| 8 | 2 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | with 'Mastodon::Role::Entity'; | |
| 10 | |||
| 11 | 2 | ▶ | use Types::Standard qw( Int Bool ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 2 | has id => ( is => 'ro', isa => Int, ); | |
| 14 | 2 | has action_taken => ( is => 'ro', isa => Bool, coerce => 1, required => 1, ); | |
| 15 | |||
| 16 | 2 | 1; | |
| 17 | |||
| 18 | =encoding utf8 | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Mastodon::Entity::Report- A Mastodon report | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | This object should not be manually created. It is intended to be generated | ||
| 27 | from the data received from a Mastodon server using the coercions in | ||
| 28 | L<Mastodon::Types>. | ||
| 29 | |||
| 30 | For current information, see the | ||
| 31 | L<Mastodon API documentation|https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#report> | ||
| 32 | |||
| 33 | =head1 ATTRIBUTES | ||
| 34 | |||
| 35 | =over 4 | ||
| 36 | |||
| 37 | =item B<id> | ||
| 38 | |||
| 39 | Target id of the report. | ||
| 40 | |||
| 41 | =item B<action_taken> | ||
| 42 | |||
| 43 | The action taken in response to the report. | ||
| 44 | |||
| 45 | =back | ||
| 46 | |||
| 47 | =head1 AUTHOR | ||
| 48 | |||
| 49 | =over 4 | ||
| 50 | |||
| 51 | =item * | ||
| 52 | |||
| 53 | José Joaquín Atria <jjatria@cpan.org> | ||
| 54 | |||
| 55 | =back | ||
| 56 | |||
| 57 | =head1 COPYRIGHT AND LICENSE | ||
| 58 | |||
| 59 | This software is copyright (c) 2017 by José Joaquín Atria. | ||
| 60 | |||
| 61 | This is free software; you can redistribute it and/or modify it under | ||
| 62 | the same terms as the Perl 5 programming language system itself. | ||
| 63 | |||
| 64 | =cut | ||