Ioan Rogers > WebService-Simplenote-0.2.1 > WebService::Simplenote::Note

Download:
WebService-Simplenote-0.2.1.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.2.1   Source  

NAME ^

WebService::Simplenote::Note - represents an individual note

VERSION ^

version 0.2.1

SYNOPSIS ^

  use WebService::Simplenote::Note;

  my $note = WebService::Simplenote::Note->new(
      content => "Some stuff",
  );

  printf "[%s] %s\n %s\n",
      $note->modifydate->iso8601,
      $note->title,
      $note->content;
  }

DESCRIPTION ^

This class represents a note suitable for use with Simplenote. You should read the Simplenote API docs for full details

METHODS ^

WebService::Simplenote::Note->new($args)

The minimum required attribute to set is content.

add_tag($str)

Push a new tag onto tags.

set_markdown

Shortcut to set the markdown system tag.

set_pinned

Shortcut to set the pinned system tag.

ATTRIBUTES ^

logger

Log::Any logger

key

Server-set unique id for the note.

title

Simplenote doens't use titles, so we autogenerate one from the first line of content.

deleted

Boolean; is this note in the trash?

createdate/modifydate

Datetime objects

tags

Arrayref[Str]; user-generated tags.

systemtags

Arrayref[Str]; special tags.

content

The body of the note

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2012 by Ioan Rogers.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991

BUGS AND LIMITATIONS ^

You can make new bug reports, and view existing ones, through the web interface at https://github.com/ioanrogers/WebService-Simplenote/issues.

SOURCE ^

The development version is on github at http://github.com/ioanrogers/WebService-Simplenote and may be cloned from git://github.com/ioanrogers/WebService-Simplenote.git

syntax highlighting: