NAME

WWW::ARDB::Result::Item - Item result object for WWW::ARDB

VERSION

version 0.001

SYNOPSIS

my $item = $api->item('acoustic_guitar');

print $item->name;          # "Acoustic Guitar"
print $item->rarity;        # "legendary"
print $item->type;          # "quick use"
print $item->value;         # 7000
print $item->icon_url;      # Full URL to icon

NAME

WWW::ARDB::Result::Item - Item result object for WWW::ARDB

ATTRIBUTES

id

String. Unique identifier.

name

String. Display name.

description

String or undef. Item description.

rarity

String or undef. Rarity level (legendary, epic, rare, uncommon, common).

type

String or undef. Item category.

value

Number or undef. Item value.

weight

Number or undef. Item weight.

stack_size

Integer or undef. Maximum stack size.

icon

String or undef. Path to icon image.

found_in

ArrayRef. Locations where item can be found.

maps

ArrayRef. Maps where item appears.

breakdown

ArrayRef. Components when item is broken down (detail endpoint only).

crafting

ArrayRef. Crafting requirements (detail endpoint only).

updated_at

String or undef. ISO 8601 timestamp of last update.

METHODS

from_hashref($data)

Class method. Creates an Item object from API response data.

icon_url

Returns the full URL to the item's icon, or undef if no icon.

SUPPORT

Source Code

The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send me a diff or prod me to pull from your repository :)

https://github.com/Getty/p5-www-ardb

git clone https://github.com/Getty/p5-www-ardb.git

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

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