se strict;
use warnings;
use v5.8.8;
use Moose;
use LWP::UserAgent;
use HTTP::Request;
use JSON::Syck;
$JSON::Syck::ImplicitUnicode = 1;
our $VERSION = '0.0.1';
has url_root => ( is => 'rw', isa =>
lf);
my $id = shift;
return _get("@{[$self->url_root]}/=/model/@{[$self->model]}/id/${id}.json");
}
sub update {
my $self = shift;
$self = $self->new unless ref($self);
my $id = s
%$attributes };
_ua()->post(
"@{[$self->url_root]}/=/action/update@{[$self->model]}.json",
$orig
);
return {};
}
sub create {
my $self = shift;
my $attributes =