ruby-maidcafe
by ANDO Yasushi ([email protected])
(http://d.hatena.ne.jp/technohippy/)

== DESCRIPTION:

By utilizing this library, you can retrieve information of Japanese
Maidcafe via Maidcafe API web service (http://moeten.info/maidcafe/?m=api).
This can be used as interactive command line tool, non-interactive one,
and library.

== SYNOPSIS:

In your code:

* get shop list
api = Maidcafe::API.new
rs = api.list :shop
puts rs.description
rs.items.each do |item|
puts item.name
puts item.id
end
* get shop information in osaka
rs = api.shop :prefecture => Maidcafe::Prefecture::OSAKA
puts rs.description
rs.items.each do |item|
puts item.name
puts item.description
puts item.opening_hour
end

In your shell:

* get shop list
bin/ruby-maidcafe -s list
* get shop information in category #1
bin/ruby-maidcafe -c 1 shop
* get event information in osaka (#27)
bin/ruby-maidcafe -t 27 event
* interactive retrieval
$ bin/ruby-maidcafe

1 : お店
2 : 開催中のイベント
:
8 : お店からのイベントのお知らせ
選択してください: 1
お店

都道府県名を指定しますか (y/N)y
1 : 北海道
2 : 栃木県
:
10 : 鹿児島県
選択してください: 1
北海道

カテゴリを指定しますか (y/N)

お店番号を指定しますか (y/N)
1 : ロミオ†ジュリエッタ - すべてがメイドさんの手作りメニュー☆
2 : 萌えカフェ&BAR ゆるふわ - メイドさん達と楽しくお話しながら、...
選択してください: 1
店名:ロミオ†ジュリエッタ
Tel: 011-222-0832
説明:すべてがメイドさんの手作りメニュー☆
日替わりで担当のメイドがsweetsを作っています。
また、土日はランチもありますよ♪
メイドによりメニューは色々変わりますので
それもひとつのお楽しみです!
イベントも満載ですよ♪

[push enter key]

== INSTALL:

* gem instal ruby-maidcafe

== LICENSE:

(The MIT License)

Copyright (c) 2007 ANDO Yasushi

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.