Group
Extension

Matches 1

SignalWire-ML ( B/BW/BWEST/SignalWire-ML-1.22.tar.gz, BWEST, 2024; MetaCPAN )
SignalWire-ML/lib/SignalWire/ML.pm ( view source; MetaCPAN )
package SignalWire::ML;

use strict;
use warnings;
use JSON;
use YAML::PP qw( Dump );

our $VERSION = '1.22';

sub new {
    my ($class, $args) = @_;
    my $self = {
        _content => {
           
g_response_json {
    my ($self, $response) = @_;
    return JSON->new->pretty->utf8->encode($response);
}

sub render {
    my ($self) = @_;
    return $self->{_content};
}

sub render_json {
    my 
($self) = @_;
    return JSON->new->pretty->utf8->encode($self->{_content});
}

sub render_yaml {
    my ($self) = @_;
    return Dump $self->{_content};
}

1;

__END__

=encoding utf8

=head1 NAME

S

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.