Lego::Part::Image::LugnetCom - Lego part image class for lugnet.com.
use Lego::Part::Image::LugnetCom; my $obj = Lego::Part::Image::LugnetCom->new; my $image = $obj->image; my $image_url = $obj->image_url;
new
my $obj = Lego::Part::Image::LugnetCom->new;
Constructor.
part
Lego::Part object.
It is required.
Default value is undef.
Returns instance of object.
image
my $image = $obj->image;
Get image.
Not implemented now.
image_url
my $image_url = $obj->image_url;
Get image URL.
Returns string with image URL.
new(): From Lego::Part::Image::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(): Design ID doesn't defined.
use strict; use warnings; use Lego::Part; use Lego::Part::Image::LugnetCom; # Object. my $obj = Lego::Part::Image::LugnetCom->new( 'part' => Lego::Part->new( 'design_id' => '3003', ), ); # Get image URL. my $image_url = $obj->image_url; # Print out. print "Part with design ID '3003' URL is: ".$image_url."\n"; # Output: # Part with design ID '3003' URL is: http://img.lugnet.com/ld/3003.gif
Error::Pure, Lego::Part::Image.
Lego part image abstract class.
Lego part image class for peeron.com.
Lego part image class for lego.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.