package Connector::Builtin::Inline; use strict; use warnings; use English; use Data::Dumper; use Moose; extends 'Connector::Builtin::Memory'; sub _build_config { my $self = shift; return $self->data(); } has 'data' => ( is => 'ro', required => 1, ); no Moose; __PACKAGE__->meta->make_immutable; 1; __END__ =head1 Name Connector::Builtin::Inline =head1 Description Inherits from Memory and loads the structure given to I as initial value. =head1 Parameters =over =item LOCATION Not used / required. =item data The payload of the connector, can be HashRef, ArrayRef or any scalar. =back