Lines 99-104
sub is_system_default {
Link Here
|
99 |
return $self->{_is_system_default}; |
99 |
return $self->{_is_system_default}; |
100 |
} |
100 |
} |
101 |
|
101 |
|
|
|
102 |
=head3 to_api |
103 |
|
104 |
my $json = $smtp_server->to_api; |
105 |
|
106 |
Overloaded method that returns a JSON representation of the Koha::SMTP::Server object, |
107 |
suitable for API output. |
108 |
|
109 |
=cut |
110 |
|
111 |
sub to_api { |
112 |
my ( $self, $params ) = @_; |
113 |
|
114 |
my $json = $self->SUPER::to_api( $params ); |
115 |
delete $json->{password}; |
116 |
|
117 |
return $json; |
118 |
} |
119 |
|
102 |
=head3 to_api_mapping |
120 |
=head3 to_api_mapping |
103 |
|
121 |
|
104 |
This method returns the mapping for representing a Koha::SMTP::Server object |
122 |
This method returns the mapping for representing a Koha::SMTP::Server object |