| 1 | package Net::ACME::Registration; | ||
| 2 | |||
| 3 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 8 | ▶ | use parent qw( Net::ACME::AccessorBase ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | #Expand this as needed. | ||
| 9 | 8 | ▶ | use constant _ACCESSORS => qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | agreement | ||
| 11 | key | ||
| 12 | terms_of_service | ||
| 13 | uri | ||
| 14 | 8 | ); | |
| 15 | |||
| 16 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 2 | my ( $class, %opts ) = @_; | |
| 18 | |||
| 19 | #Silently (?) reject anything unfamiliar. | ||
| 20 | 2 | %opts = map { ( $_ => $opts{$_} ) } _ACCESSORS(); | |
| 21 | |||
| 22 | 2 | return $class->SUPER::new( %opts ); | |
| 23 | } | ||
| 24 | |||
| 25 | 8 | 1; | |