NAME

WebService::SyoboiCalendar::API::Result - Intermediate API result representation.

SYNOPSIS

  my $result = $syobocal->current;

  $result->title;
  $result->program;

DESCRIPTION

APIs often returns insufficient results. WebService::SyoboiCalendar::API::Result wraps results, and provides methods to create object enough;

METHODS

program
  my $program = $result->program;

Creates WebService::SyoboiCalendar::Program object from this result.

title
  my $title = $result->title;

Creates WebService::SyoboiCalendar::Title object from this result.

pid
  my $pid = $result->pid;

Returns program id of this result.

tid
  my $tid = $result->tid;

Returns title id of this result.