Ioan Rogers > WebService-Simplenote > lib/WebService/Simplenote/Note.pm~

Download:
WebService-Simplenote-0.2.1.tar.gz

Annotate this POD

Website

View/Report Bugs
Source  

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

syntax highlighting: