| 1 | package Net::Google::DocumentsList::Role::EntryWithoutEtag; | ||
| 2 | use Any::Moose '::Role'; | ||
| 3 | with 'Net::Google::DataAPI::Role::Entry' => {-excludes => ['update']}; | ||
| 4 | |||
| 5 | sub update { | ||
| 6 | my ($self) = @_; | ||
| 7 | $self->atom or return; | ||
| 8 | # put without etag! | ||
| 9 | my $atom = $self->service->request( | ||
| 10 | { | ||
| 11 | method => 'PUT', | ||
| 12 | uri => $self->editurl, | ||
| 13 | content => $self->to_atom->as_xml, | ||
| 14 | content_type => 'application/atom+xml', | ||
| 15 | response_object => 'XML::Atom::Entry', | ||
| 16 | } | ||
| 17 | ); | ||
| 18 | $self->container->sync; | ||
| 19 | $self->atom($atom); | ||
| 20 | } | ||
| 21 | |||
| 22 | 1; |