line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mastodon::Entity::Instance; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
1970
|
use strict; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
168
|
|
4
|
5
|
|
|
5
|
|
27
|
use warnings; |
|
5
|
|
|
|
|
13
|
|
|
5
|
|
|
|
|
290
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.012'; |
7
|
|
|
|
|
|
|
|
8
|
5
|
|
|
5
|
|
31
|
use Moo; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
53
|
|
9
|
|
|
|
|
|
|
with 'Mastodon::Role::Entity'; |
10
|
|
|
|
|
|
|
|
11
|
5
|
|
|
5
|
|
2370
|
use Types::Standard qw( Bool Str ); |
|
5
|
|
|
|
|
17
|
|
|
5
|
|
|
|
|
102
|
|
12
|
5
|
|
|
5
|
|
5477
|
use Mastodon::Types qw( URI ); |
|
5
|
|
|
|
|
37
|
|
|
5
|
|
|
|
|
48
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has email => ( is => 'ro', isa => Str, ); |
15
|
|
|
|
|
|
|
has description => ( is => 'ro', isa => Str, ); |
16
|
|
|
|
|
|
|
has title => ( is => 'ro', isa => Str, ); |
17
|
|
|
|
|
|
|
has uri => ( is => 'ro', isa => URI, coerce => 1, required => 1, ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding utf8 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Mastodon::Entity::Instance - A Mastodon instance |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 DESCRIPTION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
This object should not be manually created. It is intended to be generated |
30
|
|
|
|
|
|
|
from the data received from a Mastodon server using the coercions in |
31
|
|
|
|
|
|
|
L<Mastodon::Types>. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
For current information, see the |
34
|
|
|
|
|
|
|
L<Mastodon API documentation|https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#instance> |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=over 4 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item B<uri> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
URI of the current instance. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item B<title> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
The instance's title. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item B<description> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
A description for the instance. |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item B<email> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
An email address which can be used to contact the instance administrator. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=back |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=over 4 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item * |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
José JoaquÃn Atria <jjatria@cpan.org> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=back |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This software is copyright (c) 2017 by José JoaquÃn Atria. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
73
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |