7b3d03e7b0c765af35d74af6be028035f1805942
[koha_fer] / C4 / SIP / Sip / Configuration / Account.pm
1 #
2 #
3 #
4 #
5
6 package Sip::Configuration::Account;
7
8 use strict;
9 use warnings;
10 use English;
11 # use Exporter;
12
13 sub new {
14     my ($class, $obj) = @_;
15     my $type = ref($class) || $class;
16
17     if (ref($obj) eq "HASH") {
18         # Just bless the object
19         return bless $obj, $type;
20     }
21
22     return bless {}, $type;
23 }
24
25 sub id {
26     my $self = shift;
27     return $self->{id};
28 }
29
30 sub institution {
31     my $self = shift;
32     return $self->{institution};
33 }
34
35 sub password {
36     my $self = shift;
37     return $self->{password};
38 }
39
40 1;