NAME

Acme::MomoiroClover - All about Japanese lock star "Momoiro Clover"

SYNOPSIS

use Acme::MomoiroClover;

my $momoclo_chan = Acme::Momoiro::Z->new;

# retrieve the members on their activities
my @members              = $momoclo_chan->members;             # retrieve all
my @active_members       = $momoclo_chan->members('active');
my @graduate_members     = $momoclo_chan->members('graduate');
my @at_some_time_members = $momoclo_chan->members(Date::Simple->new('2001-01-01'));

# retrieve the members under some conditions
my @sorted_by_age        = $momoclo_chan->sort('age', 1);
my @sorted_by_class      = $momoclo_chan->sort('class', 1);
my @selected_by_age      = $momoclo_chan->select('age', 17, '>=');
my @selected_by_class    = $momoclo_chan->select('class', 5, '==');

DESCRIPTION

"Morning Clover" is one of highly famous Japanese lock stars.

This module, Acme::MomoiroClover, provides an easy method to catch up with Momoiro Clover.

METHODS

new

    my $momoclo_chan = Acme::MomoiroClover->new; // now obsolete
    $momoclo_chan = Acme::MomoiroClover::Z->new;

    Creates and returns a new Acme::MomoiroClover::Z object.

members ( $type )

    # $type can be one of the values below:
    #  + active              : active members
    #  + graduate            : graduate members
    #  + Date::Simple object : members at the time passed in
    #  + undef               : all members
    
    my @members = $momoclo_chan->members('active');

    Returns the members as a list of the Acme::MomoiroClover::Base based object represents each member. See also the documentation of Acme::MomoiroClover::Base for more details.

sort ( $type, $order [ , @members ] )

    # $type can be one of the values below:
    #  + age       :  sort by age
    #  + join_date :  sort by join_date
    #
    # $order can be a one of the values below:
    #  + something true value  :  sort in descending order
    #  + something false value :  sort in ascending order
    
    my @sorted_members = $momoclo_chan->sort('age', 1); # sort by age in descending order

    Returns the members sorted by the $type field.

select ( $type, $number, $operator [, @members] )

    # $type can be one of the same values above:
    my @selected_members = $momoclo_chan->select('age', 17, '>=');

    Returns the members satisfy the given $type condition. $operator must be a one of '==', '>=', '<=', '>', and '<'. This method compares the given $type to the member's one in the order below:

    $number $operator $member_value

SEE ALSO

AUTHOR

Yuichi Tateno<hotchpotch@gmail.com<gt>

Based on Acme::MomoiroClover (Kentaro Kuribayashi).

COPYRIGHT AND LICENSE (The MIT License)

Copyright (c) 2011, Yuichi Tateno <hotchpotch@gmail.com<gt>

Original Copyright, Kentaro Kuribayashi.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.