You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/lib/NGCP/Panel/Utils/RedisLocationResultSource.pm

28 lines
460 B

package NGCP::Panel::Utils::RedisLocationResultSource;
use Moo;
our $AUTOLOAD;
has _data => (
is => 'ro',
isa => sub { die "$_[0] must be HASHREF" unless $_[0] && ref $_[0] eq 'HASH' },
default => sub {{}},
);
sub AUTOLOAD {
my $self = shift;
my $col = $AUTOLOAD;
$col = (split /::/, $col)[-1];
return $self->_data->{$col};
}
sub get_inflated_columns {
my ($self) = @_;
return %{ $self->_data };
}
sub columns { }
1;