Sha256: e80a52390378387b485374847741deb50069c35e37979731104e3dd960aee928

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

class Pupil
  # @param [String] keyword Search word
  # @param [Hash]  option
  # @return [Array] Tweets
  def search(keyword, option={})
    response = self.get("search/tweets.json", {:q => keyword}.update(option))
    statuses = Array.new
    response["statuses"].each do |element|
      status = Status.new element
      statuses << status
    end
    return statuses
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pupil-0.7 lib/pupil/search.rb