The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WebService::MyGengo::Comment - A Comment in the myGengo system.

SYNOPSIS

    my $comment = WebService::MyGengo::Comment->new( { body => 'Hello.' } );
    # or
    $comment = WebService::MyGengo::Comment->new( 'Hello.' );

    # Do something with the Comment
    $job = $client->add_job_comment( $job, $comment );

    # Returns ->body on stringification
    my $body = "$comment"; # $body eq "Hello."

ATTRIBUTES

body (Str)

The body of the comment in UTF-8 encoding.

Note: Sometimes the API returns 'null' (undef) for this value. In this case the value will be coerced into an empty string.

author (Str)

The author of the message.

This value is set by the API to one of the following: translator, customer

ctime (DateTime)

The timestamp at which this Comment was created.

This value is set by the API.

SEE ALSO

http://mygengo.com/api/developer-docs/methods/translate-job-id-comments-get/

AUTHOR

Nathaniel Heinrichs

LICENSE

Copyright (c) 2011, Nathaniel Heinrichs <nheinric-at-cpan.org>. All rights reserved.

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.