NAME

WWW::MetaForge::ArcRaiders::Result::Trader - Trader result object

VERSION

version 0.002

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.

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.

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

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-metaforge/issues.

IRC

You can reach Getty on irc.perl.org for questions and support.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

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.