NAME

ElasticSearchX::Model::Generator::TypenameTranslator - Transform upstream type/document names to downstream Package/Class/File names.

VERSION

version 0.1.8

METHODS

translate_to_path

my $path = $instance->translate_to_path( 'file' );
# ->  /my/base/dir/File.pm

translate_to_package

my $package = $instance->translate_to_package('file');
# -> MyBaseClass::File

ATTRIBUTES

generator_base

rw, required, weak_ref

PRIVATE METHODS

_words

@words = $instance->_words( $string );

AUTHOR

Kent Fredric <kentfredric@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Kent Fredric <kentfredric@gmail.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.