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&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&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.