Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

connection(Termtter::Connection) や twitter(Termtter::Twitter)にアクセスするための API を用意する

#7

connection(Termtter::Connection) や twitter(Termtter::Twitter)にアクセスするための API を用意する必要があると思ってます。 どこからでも呼べたほうが便利なので。 あと、connection に関しては proxy の設定とかも絡んでくるので、統一されたやりかたが必要です。

以下のような感じでアクセスできると良いんじゃないかなー、と思ってます。

Termtter::Client.twitter

もしくは、

Termtter.twitter

それか、トップレベルに定義してしまってもいいかなー、とも思ってます。

Reported by jugyo · January 14th, 2009 @ 02:07 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. jugyo
    jugyo
    • State changed from new to resolved

    Termtter::API モジュールを用意した。

    http://github.com/jugyo/termtter...

    例:

    
    Termtter::API.twitter.update_status(text)
    

    January 19th, 2009 @ 08:06 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.