line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mastodon::Entity::Context; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
2749
|
use strict; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
85
|
|
4
|
3
|
|
|
3
|
|
15
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
131
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.012'; |
7
|
|
|
|
|
|
|
|
8
|
3
|
|
|
3
|
|
18
|
use Moo; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
19
|
|
9
|
|
|
|
|
|
|
with 'Mastodon::Role::Entity'; |
10
|
|
|
|
|
|
|
|
11
|
3
|
|
|
3
|
|
1013
|
use Types::Standard qw( ArrayRef ); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
29
|
|
12
|
3
|
|
|
3
|
|
2271
|
use Mastodon::Types qw( Status ); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
62
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has ancestors => ( is => 'ro', isa => ArrayRef [Status], required => 1, ); |
15
|
|
|
|
|
|
|
has descendants => ( is => 'ro', isa => ArrayRef [Status], ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=encoding utf8 |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Mastodon::Entity::Context - The context of a Mastodon status |
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#context> |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=over 4 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item B<ancestors> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
The ancestors of the status in the conversation, as a list of |
41
|
|
|
|
|
|
|
L<Mastodon::Entity::Status> objects. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=item B<descendants> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
The descendants of the status in the conversation, as a list of |
46
|
|
|
|
|
|
|
L<Mastodon::Entity::Status> objects. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=back |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=over 4 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
José JoaquÃn Atria <jjatria@cpan.org> |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=back |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This software is copyright (c) 2017 by José JoaquÃn Atria. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
65
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |