blib/lib/XML/NewsML_G2/Organisation.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
__ANON__
1.0
CRAP 1.0
« blib/lib/XML/NewsML_G2/News_Message.pm ↑ Summary blib/lib/XML/NewsML_G2/Picture.pm »
1 package XML::NewsML_G2::Organisation;
2  
3 19 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 19 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 19 with 'XML::NewsML_G2::Role::HasQCode';
7  
8 has 'isins',
9 isa => 'ArrayRef[Str]',
10 is => 'rw',
11 1 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
12 19 traits => ['Array'],
13 handles => { add_isin => 'push' };
14 has 'websites',
15 isa => 'ArrayRef[Str]',
16 is => 'rw',
17 1 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
18 19 traits => ['Array'],
19 handles => { add_website => 'push', has_websites => 'count' };
20 has 'indices',
21 isa => 'ArrayRef[Str]',
22 is => 'rw',
23 16 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
24 19 traits => ['Array'],
25 handles => { add_index => 'push' };
26 has 'stock_exchanges',
27 isa => 'ArrayRef[Str]',
28 is => 'rw',
29 16 ▶ default => sub { [] },
Subroutine __ANON__: called CC=1 SCAR=0.0
30 19 traits => ['Array'],
31 handles => { add_stock_exchange => 'push' };
32  
33 19 __PACKAGE__->meta->make_immutable;
34  
35 19 1;
36 __END__
37  
38 =head1 NAME
39  
40 XML::NewsML_G2::Oranisation - a company or organisation
41  
42 =head1 SYNOPSIS
43  
44 my $org = XML::NewsML_G2::Organisation->new
45 (name => 'Google Inc.', qcode => 'gogl', websites => ["http://google.com"]);
46  
47 =head1 ATTRIBUTES
48  
49 =over 4
50  
51 =item isins
52  
53 List of international securities identification numbers.
54  
55 =item websites
56  
57 List of the websites
58  
59 =item indices
60  
61 List of stock indexes covering this organisation
62  
63 =item stock_exchanges
64  
65 List of stock exchanges where this organisation is listed
66  
67 =back
68  
69 =head2 METHODS
70  
71 =over 4
72  
73 =item add_isin
74  
75 =item add_website
76  
77 =item add_index
78  
79 =item add_stock_exchange
80  
81 =back
82  
83 =head1 AUTHOR
84  
85 Philipp Gortan C<< <philipp.gortan@apa.at> >>
86  
87 =head1 LICENCE AND COPYRIGHT
88  
89 Copyright (c) 2013-2014, APA-IT. All rights reserved.
90  
91 See L<XML::NewsML_G2> for the license.
« blib/lib/XML/NewsML_G2/News_Message.pm ↑ Summary blib/lib/XML/NewsML_G2/Picture.pm »