NAME

WebService::Bugzilla::Object - Base class for Bugzilla API objects

VERSION

version 0.001

SYNOPSIS

This module is not used directly. All service objects in this distribution inherit from it.

package WebService::Bugzilla::Bug;
use Moo;
extends 'WebService::Bugzilla::Object';

DESCRIPTION

Base class for all Bugzilla API objects. It provides common attributes (client, id, raw API data) and helper methods used by every service class in this distribution.

See https://bmo.readthedocs.io/en/latest/api/core/v1/index.html for the upstream API documentation.

ATTRIBUTES

client

Required. The WebService::Bugzilla client instance that owns this object. Stored as a weak reference.

id

The numeric object ID. Lazy-built from _api_data on first access.

METHODS

has_id

if ($obj->has_id) { ... }

Moo predicate for id. Returns true when an ID is available.

SEE ALSO

WebService::Bugzilla - the client that creates these objects

https://bmo.readthedocs.io/en/latest/api/core/v1/index.html - Bugzilla REST API documentation

AUTHOR

Dean Hamstead <dean@fragfest.com.au>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2026 by Dean Hamstead.

This is free software, licensed under:

The MIT (X11) License