NAME
WebService::MyGengo::Revision - A Revision in the myGengo system.
SYNOPSIS
# Note: Revisions can't actually be submitted via API,
# so creating one by hand is only useful for testing
my $rev = WebService::MyGengo::Revision->new( { body_tgt => 'Hello.' } );
# or
$rev = WebService::MyGengo::Revision->new( 'Hello.' );
# Elsewhere...
my @revs = $client->get_job_revisions( $job->id );
# $body_tgt eq 'Hello.'
my $body_tgt = "$revs[0]"; # Overloads stringification to ->body_tgt
ATTRIBUTES
rev_id|id (Int)
A unique identifier for this Revision.
body_tgt (Src)
The translation results.
Sometimes the API returns 'null' (undef) for this value. In this case the value will be coerced into an empty string.
ctime (DateTime)
The DateTime at which this Revision was created.
This value is set by the API.
METHODS
SEE ALSO
http://mygengo.com/api/developer-docs/methods/translate-job-id-revision-rev-id-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.