NAME

Mobile::Devices::Loop::GetOptions - get standard commandline options for Mobile::Devices::Loop

SYNOPSIS

use Mobile::Devices::Loop::GetOptions;

my $loop_options = Mobile::Devices::Loop::GetOptions->new();

print $loop_options->lib_folder, "\n";
print $loop_options->wurfl_filename, "\n";

my $devices_loop = $loop_options->devices_loop;
my $devices     = $loop_options->devices;

DESCRIPTION

Helper class to initialize and set parameters for command line scripts that need to access Mobile::Devices::Loop and/or Mobile::Devices.

PROPERTIES

lib_folder
wurfl_filename

METHODS

new()

Object constructor. Any arguments of new() will be passed to "GetOptions" in Getopt::Long.

wurfl_folder()

Returns folder where wurfl.xml and generated .pm files are located.

devices_loop()

Return Mobile::Devices::Loop initialized initialized with <$self-wurfl_filename>>.

devices()

Return Mobile::Devices initilialized with <$self-lib_folder>>

AUTHOR

Jozef Kutej