NAME

WWW::ARDB::Result::ArcEnemy - ARC Enemy result object for WWW::ARDB

VERSION

version 0.001

SYNOPSIS

my $enemy = $api->arc_enemy('wasp');

print $enemy->name;       # "Wasp"
print $enemy->icon_url;   # Full URL to icon

for my $drop (@{$enemy->drop_table}) {
    printf "- %s (%s)\n", $drop->{name}, $drop->{rarity};
}

# Or just get drop names
my $drops = $enemy->drops;  # ['Wires', 'Medium Ammo', ...]

NAME

WWW::ARDB::Result::ArcEnemy - ARC Enemy result object for WWW::ARDB

ATTRIBUTES

id

String. Unique identifier.

name

String. Enemy name.

icon

String or undef. Path to icon image.

image

String or undef. Path to full image.

drop_table

ArrayRef of HashRefs. Items this enemy can drop, each with id, name, rarity, type, foundIn, value, icon (detail endpoint only).

ArrayRef. Maps where this enemy appears (detail endpoint only).

updated_at

String or undef. ISO 8601 timestamp of last update.

METHODS

from_hashref($data)

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

icon_url

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

image_url

Returns the full URL to the enemy's image, or undef if no image.

drops

Returns an ArrayRef of drop item names.

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.