TT#68300 Allow overriding default options in the constructor

We might want to use different values in the constructor, instead
of the ones coming from the configuration file or the global defauls.

Change-Id: Ifc9e3d762cf46a036bffb8073cd3c41a42589510
changes/09/34109/5
Guillem Jover 6 years ago
parent 901996fc97
commit 5a3346a5ac

@ -103,10 +103,10 @@ sub _get_url {
}
sub new {
my $class = shift;
my ($class, %opts) = @_;
my $self = {
_opts => { },
_opts => { %opts },
};
bless $self, $class;

Loading…
Cancel
Save