File Coverage

blib/lib/STIX/Observable.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1             package STIX::Observable;
2              
3 25     25   14802 use 5.010001;
  25         105  
4 25     25   270 use strict;
  25         55  
  25         806  
5 25     25   173 use warnings;
  25         49  
  25         1384  
6 25     25   152 use utf8;
  25         43  
  25         171  
7              
8 25     25   1265 use STIX::Common::Binary;
  25         2846  
  25         48549  
9 25     25   1445 use STIX::Common::Enum;
  25         670  
  25         1923  
10              
11 25     25   177 use Moo;
  25         49  
  25         205  
12             extends 'STIX::Common::Properties';
13              
14 25     25   10805 use constant STIX_OBJECT => 'SCO';
  25         64  
  25         2477  
15              
16             1;
17              
18             =encoding utf-8
19              
20             =head1 NAME
21              
22             STIX::Observable - Base class for STIX Cyber-observable Object (SCO)
23              
24             =head2 METHODS
25              
26             L inherits all methods from L.
27              
28              
29             =head2 HELPERS
30              
31             =over
32              
33             =item $object->TO_JSON
34              
35             Encode the object in JSON.
36              
37             =item $object->to_hash
38              
39             Return the object HASH.
40              
41             =item $object->to_string
42              
43             Encode the object in JSON.
44              
45             =item $object->validate
46              
47             Validate the object using JSON Schema
48             (see L).
49              
50             =back
51              
52              
53             =head1 SUPPORT
54              
55             =head2 Bugs / Feature Requests
56              
57             Please report any bugs or feature requests through the issue tracker
58             at L.
59             You will be notified automatically of any progress on your issue.
60              
61             =head2 Source Code
62              
63             This is open source software. The code repository is available for
64             public review and contribution under the terms of the license.
65              
66             L
67              
68             git clone https://github.com/giterlizzi/perl-STIX.git
69              
70              
71             =head1 AUTHOR
72              
73             =over 4
74              
75             =item * Giuseppe Di Terlizzi
76              
77             =back
78              
79              
80             =head1 LICENSE AND COPYRIGHT
81              
82             This software is copyright (c) 2024 by Giuseppe Di Terlizzi.
83              
84             This is free software; you can redistribute it and/or modify it under
85             the same terms as the Perl 5 programming language system itself.
86              
87             =cut