---
name: "Net::Google::Code::Issue::Attachment"
section: "3pm"
platform: "linux"
package: "libnet-google-code-perl"
version: "0.19-2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::Google::Code::Issue::Attachment"
---

# Net::Google::Code::Issue::Attachment(3pm)

Issue's Attachment

## NAME

Net::Google::Code::Issue::Attachment - Issue's Attachment

## DESCRIPTION

This class represents a single attachment for an issue or an issue's comment.

## INTERFACE

- parse( HTML::Element or \[ HTML::Element, HTML::Element \] or html segment string )

  there're 2 trs that represent an attachment like the following:

  ```
   <tr><td rowspan="2" width="24"><a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&amp;name=proxy_settings.png" target="new"><img width="16" height="16" src="/hosting/images/generic.gif" border="0" ></a></td>
   <td><b>proxy_settings.png</b></td></tr>
   <tr><td>14.3 KB

   <a href="http://chromium.googlecode.com/issues/attachment?aid=-1323983749556004507&amp;name=proxy_settings.png">Download</a></td></tr>
  ```

- parse\_attachments( HTML::Element or html segment string )

  given the \<div class="attachments"\>...\</div\> or its equivalent HTML::Element object, return a list of Net::Google::Code::Attachment objects.

- name

  - content

  - size

  - url

  - id

  - content

  - content\_type

  ## AUTHOR

sunnavy  `"<sunnavy@bestpractical.com>"`

## LICENCE AND COPYRIGHT

Copyright 2008-2010 Best Practical Solutions.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
