Lego::Part::Image - Lego part image abstract class.
use Lego::Part::Image; my $obj = Lego::Part::Image->new; $obj->image; $obj->image_url;
new
my $obj = Lego::Part::Image->new;
Constructor.
part
Lego::Part object.
It is required.
Default value is undef.
Returns instance of object.
image
$obj->image;
Abstract method for getting image.
image_url
$obj->image_url;
Abstract method for getting image url.
new(): Parameter 'part' is required. Parameter 'part' must be Lego::Part object. From Class::Utils::set_params(): Unknown parameter '%s'. image(): This is abstract class. image() method not implemented. image_url(): This is abstract class. image_url() method not implemented.
use strict; use warnings; use Lego::Part; use Lego::Part::Image; # Error pure setting. $ENV{'ERROR_PURE_TYPE'} = 'Print'; # Object. my $obj = Lego::Part::Image->new( 'part' => Lego::Part->new( 'color' => 'red', 'design_id' => '3002', ), ); # Get image. $obj->image; # Output: # Lego::Part::Image: This is abstract class. image() method not implemented.
Class::Utils, Error::Pure, Readonly, Scalar::Util.
Lego part image class for peeron.com.
Lego part image class for lego.com.
Lego part image class for lugnet.com.
Install the Lego modules.
https://github.com/michal-josef-spacek/Lego-Part-Image
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2015-2023 Michal Josef Špaček
BSD 2-Clause License
0.06
To install Lego::Part::Image, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lego::Part::Image
CPAN shell
perl -MCPAN -e shell install Lego::Part::Image
For more information on module installation, please visit the detailed CPAN module installation guide.