blib/lib/XML/NewsML_G2/Organisation.pm

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