Changeset 9046 for lang/perl

Show
Ignore:
Timestamp:
04/07/08 11:20:41 (5 years ago)
Author:
tokuhirom
Message:

added docs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTTP-MobileAttribute/trunk/lib/HTTP/MobileAttribute/Plugin/Display.pm

    r8865 r9046  
    5050 
    51511; 
     52__END__ 
     53 
     54=encoding UTF-8 
     55 
     56=head1 NAME 
     57 
     58HTTP::MobileAttribute::Plugin::Display - ディスプレイサイズの情報を得る 
     59 
     60=head1 DESCRIPTION 
     61 
     62    use HTTP::MobileAttribute plugins => [ { 
     63        module => 'Display', 
     64        config => { 
     65            DoCoMoMap => +{ 
     66                D209I => +{ color => 1 depth => 256 height => 90 width => 96 }, 
     67                # snip ... 
     68            } 
     69        } 
     70    }]; 
     71 
     72    HTTP::MobileAttribute->new($ua)->display; # => instance of HTTP::MobileAttribute::Plugin::Display::Display 
     73 
     74=head1 DESCRIPTION 
     75 
     76'display' メソッドを呼ぶと、HTTP::MobileAttribute::Plugin::Display::Display のインスタンスをえることができます。 
     77このオブジェクトは width, height, color, depth の 4 種類の属性をもっています。 
     78 
     79DoCoMo は、HTTP Header 等からこの情報をうけとることができないので、データをプラグインにわたす必要があります。 
     80この情報は、DoCoMo からマシンリーダブルな形式では提供されていないので L<WWW::MobileCarrierJP> 等を駆使してスクレイピングする必要があります。 
     81 
     82=head1 AUTHORS 
     83 
     84Tokuhiro Matsuno 
     85 
     86=head1 SEE ALSO 
     87 
     88L<HTTP::MobileAttribute> 
     89