The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Hachero::Result::Data - a class to store analyzed data of Hachero

SYNOPSYS

  my $data = App::Hachero::Result::Data->new(
      {
          foo => 'bar',
          hoge => 'fuga',
      }
  );
  $data->count_up;

  my @keys = $data->keys;
  # qw(foo hoge count)

  my $value = $data->value('count');
  # 1
  $data->count_up(4)
  $value = $data->value('count');
  # 5

  my $hashref = $data->hashref;
  # { foo => 'bar', hoge => 'fuga', count => 5 }

DESCRIPTION

A class to store analyzed data of Hachero.

METHODS

new($hashref)

creates result data.

keys

returns keys in this data objects.

value($key)

returns data value of specified key.

count_up($count)

increments 'count' value with specified number. default number is 1.

hashref

returns data hashref of this object.

AUTHOR

Nobuo Danjou <nobuo.danjou@gmail.com>

SEE ALSO

App::Hachero

App::Hachero::Result