NAME
WWW::MetaForge::ArcRaiders::Result::Trader - Trader result object
VERSION
version 0.001
SYNOPSIS
my $traders = $api->traders;
for my $trader (@$traders) {
say $trader->name;
if (my $item = $trader->find_item('Ferro I')) {
say " Sells Ferro I for $item->{price}";
}
}
DESCRIPTION
Represents a trader NPC from the ARC Raiders game.
ATTRIBUTES
name
Trader name (e.g., "Apollo", "TianWen").
description
Trader description text.
location
Where the trader can be found.
inventory
ArrayRef of items for sale: [{ item = "Name", price => 1000, stock => 5 }]>.
last_refresh
ISO timestamp of last inventory refresh.
METHODS
from_hashref
my $trader = WWW::MetaForge::ArcRaiders::Result::Trader->from_hashref(\%data);
Construct from API response.
find_item
my $info = $trader->find_item('Ferro I');
Search inventory by name (case-insensitive). Returns inventory entry or undef.
has_item
if ($trader->has_item('Metal Parts')) { ... }
Returns true if trader sells the named item.
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-metaforge
git clone https://github.com/Getty/p5-www-metaforge.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.