package WebService::Mattermost::V4::API::Object::Role::StatusCode; # ABSTRACT: Adds a "status_code" field to an object. use Moo::Role; use Types::Standard qw(Int Maybe); ################################################################################ has status_code => (is => 'ro', isa => Maybe[Int], lazy => 1, builder => 1); ################################################################################ sub _build_status_code { my $self = shift; return $self->raw_data->{status_code}; } ################################################################################ 1; __END__ =pod =encoding UTF-8 =head1 NAME WebService::Mattermost::V4::API::Object::Role::StatusCode - Adds a "status_code" field to an object. =head1 VERSION version 0.31 =head1 DESCRIPTION Attach a StatusCode to a v4::Object object. =head2 ATTRIBUTES =over 4 =item C =back =head1 AUTHOR Mike Jones =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2023 by Mike Jones. This is free software, licensed under: The MIT (X11) License =cut