| 1 | package WWW::Hetzner::Storage::StorageBoxType; | ||
| 2 | # ABSTRACT: Hetzner Storage Box Type object | ||
| 3 | |||
| 4 | 11 | our $VERSION = '0.102'; | |
| 5 | |||
| 6 | 11 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 11 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | |||
| 10 | 11 | has _client => ( | |
| 11 | is => 'ro', | ||
| 12 | required => 1, | ||
| 13 | weak_ref => 1, | ||
| 14 | init_arg => 'client', | ||
| 15 | ); | ||
| 16 | |||
| 17 | 11 | has id => ( is => 'ro' ); | |
| 18 | 11 | has name => ( is => 'ro' ); | |
| 19 | 11 | has description => ( is => 'ro' ); | |
| 20 | 11 | has snapshot_limit => ( is => 'ro' ); | |
| 21 | 11 | has automatic_snapshot_limit => ( is => 'ro' ); | |
| 22 | 11 | has subaccounts_limit => ( is => 'ro' ); | |
| 23 | 11 | has size => ( is => 'ro' ); | |
| 24 | 11 | has prices => ( is => 'ro' ); | |
| 25 | 11 | has deprecation => ( is => 'ro' ); | |
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | |||
| 37 | 1 | ▶ | sub data { |
|
Subroutine
data: called CC=1 SCAR=0.0
Pod
documented
| |||
| 38 | 1 | my ($self) = @_; | |
| 39 | return { | ||
| 40 | 1 | id => $self->id, | |
| 41 | name => $self->name, | ||
| 42 | description => $self->description, | ||
| 43 | snapshot_limit => $self->snapshot_limit, | ||
| 44 | automatic_snapshot_limit => $self->automatic_snapshot_limit, | ||
| 45 | subaccounts_limit => $self->subaccounts_limit, | ||
| 46 | size => $self->size, | ||
| 47 | prices => $self->prices, | ||
| 48 | deprecation => $self->deprecation, | ||
| 49 | }; | ||
| 50 | } | ||
| 51 | |||
| 52 | |||
| 53 | 11 | 1; | |
| 54 | |||
| 55 | __END__ | ||