Skip to content

Instantly share code, notes, and snippets.

@b-abctech
Last active December 28, 2015 07:08
Show Gist options
  • Save b-abctech/7461624 to your computer and use it in GitHub Desktop.
Save b-abctech/7461624 to your computer and use it in GitHub Desktop.
########################### config yml ###########################
---
name: SearchResponsive::EchoSlam
EchoSlam:
my_config:
channel_name: 'my_config_yml_channel'
########################### model ###########################
package SearchResponsive::EchoSlam;
use Moose;
use namespace::autoclean;
has 'my_config' => (
is => 'ro',
isa => 'HashRef',
);
sub channel_name {
my ( $self ) = @_;
return $self->my_config->{'channel_name'};
#return SearchResponsive->config->{'EchoSlam'}->{'my_config'}->{'channel_name'};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment