| 1 | package NIST::Beacon::Record; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | # ABSTRACT: A Record object used by NIST::Beacon to represent received data. | ||
| 7 | |||
| 8 | 4 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 4 | has 'version' => (is => 'ro'); | |
| 11 | 4 | has 'frequency' => (is => 'ro'); | |
| 12 | 4 | has 'timestamp' => (is => 'ro'); | |
| 13 | 4 | has 'seed' => (is => 'ro'); | |
| 14 | 4 | has 'previous' => (is => 'ro'); | |
| 15 | 4 | has 'signature' => (is => 'ro'); | |
| 16 | 4 | has 'current' => (is => 'ro'); | |
| 17 | 4 | has 'status' => (is => 'ro'); | |
| 18 | |||
| 19 | |||
| 20 | sub BUILD { | ||
| 21 | 3 | ▶ | my $self = shift; |
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 22 | 3 | my $param = shift; | |
| 23 | |||
| 24 | 3 | $self->{version} = $param->{version}; | |
| 25 | 3 | $self->{frequency} = $param->{frequency}; | |
| 26 | 3 | $self->{timestamp} = $param->{timeStamp}; | |
| 27 | 3 | $self->{seed} = $param->{seedValue}; | |
| 28 | 3 | $self->{previous} = $param->{previousOutputValue}; | |
| 29 | 3 | $self->{signature} = $param->{signatureValue}; | |
| 30 | 3 | $self->{current} = $param->{outputValue}; | |
| 31 | 3 | $self->{status} = $param->{statusCode}; | |
| 32 | } | ||
| 33 | |||
| 34 | 4 | 1; | |
| 35 | |||
| 36 | __END__ | ||