| 1 | package Mastodon::Entity::Application; | ||
| 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( Str Maybe ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | ▶ | use Mastodon::Types qw( URI ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 2 | has name => ( is => 'ro', isa => Str, ); | |
| 15 | 2 | has website => ( is => 'ro', isa => Maybe[URI], coerce => 1, required => 1,); | |
| 16 | |||
| 17 | 2 | 1; | |
| 18 | |||
| 19 | =encoding utf8 | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Mastodon::Entity::Application - A Mastodon application | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This object should not be manually created. It is intended to be generated | ||
| 28 | from the data received from a Mastodon server using the coercions in | ||
| 29 | L<Mastodon::Types>. | ||
| 30 | |||
| 31 | For current information, see the | ||
| 32 | L<Mastodon API documentation|https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#application> | ||
| 33 | |||
| 34 | =head1 ATTRIBUTES | ||
| 35 | |||
| 36 | =over 4 | ||
| 37 | |||
| 38 | =item B<name> | ||
| 39 | |||
| 40 | Name of the app. | ||
| 41 | |||
| 42 | =item B<website> | ||
| 43 | |||
| 44 | Homepage URL of the app. | ||
| 45 | |||
| 46 | =back | ||
| 47 | |||
| 48 | =head1 AUTHOR | ||
| 49 | |||
| 50 | =over 4 | ||
| 51 | |||
| 52 | =item * | ||
| 53 | |||
| 54 | José Joaquín Atria <jjatria@cpan.org> | ||
| 55 | |||
| 56 | =back | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | This software is copyright (c) 2017 by José Joaquín Atria. | ||
| 61 | |||
| 62 | This is free software; you can redistribute it and/or modify it under | ||
| 63 | the same terms as the Perl 5 programming language system itself. | ||
| 64 | |||
| 65 | =cut | ||