| 1 | package Net::Fastly::Customer; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 5 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 5 | ▶ | use base qw(Net::Fastly::Model); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | 5 | Net::Fastly::Customer->mk_accessors(qw(id name owner_id)); | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | =head1 NAME | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | Net::Fastly::User - a representation of a user | ||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | =head1 ACCESSORS | ||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | =head2 id | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | The id of this customer | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | =head2 name | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | The name of this customer | ||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | =head2 owner_id | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | The id of the user that owns this customer | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | =cut | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | =head1 METHODS | ||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | =head2 owner | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | The User object representing the owner of this customer. | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | =cut | ||||||||||||||||||||
| 35 | sub owner { | ||||||||||||||||||||
| 36 | 0 | ▶ | my $self = shift; | ||||||||||||||||||
|
Subroutine
owner: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||||||||||||
| 37 | 0 | ▶ | return $self->{_owner} ||= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id); | ||||||||||||||||||
|
Condition0%0/3
$self->{"_owner"} ||= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
MC/DC0%0/2
$self->{"_owner"} ||= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
$self->{"_owner"}
$self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
Truth table0%0/3
A ||= B
A= $self->{"_owner"}B= $self->_fetcher->_get("Net::Fastly::User", $self->owner_id)
| |||||||||||||||||||||
| 38 | } | ||||||||||||||||||||
| 39 | 5 | 1; | |||||||||||||||||||