Last active
December 28, 2015 07:08
-
-
Save b-abctech/7461624 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################### 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