Changeset 29271 for lang/ruby/hatena

Show
Ignore:
Timestamp:
01/30/09 12:44:06 (4 years ago)
Author:
isaisstillalive
Message:
  • public_timelineにもオプションを渡せるようにした(未テスト)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/hatena/api_branch/haiku.rb

    r28449 r29271  
    2828 
    2929      # haiku.public_timeline 
    30       def public_timeline 
    31         Statuses.new.public_timeline 
     30      def public_timeline(options = {}) 
     31        Statuses.new.public_timeline(options) 
    3232      end 
    3333 
     
    196196        } 
    197197 
    198         def public_timeline 
    199           JSON.parse open(API_URI[:public_timeline]).read 
     198        def public_timeline(options = {}) 
     199          other_timeline(API_URI[:public_timeline], options) 
    200200        end 
    201201