Sha256: 1d7e838d5708e437aa70dd51ab81b71499fb55d30c5105930c93ba2509a72bf4

Contents?: true

Size: 283 Bytes

Versions: 7

Compression:

Stored size: 283 Bytes

Contents

# A simple Hash wrapper that gives you method-based
# access to the properties of a Twitter status.
class TweetStream::Status < TweetStream::Hash
  def initialize(hash)
    super
    self[:user] = TweetStream::User.new(self[:user])
  end
  
  def id
    self[:id] || super
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tweetstream-1.0.5 lib/tweetstream/status.rb
tweetstream-1.1.0.rc1 lib/tweetstream/status.rb
tweetstream-1.0.4 lib/tweetstream/status.rb
tweetstream-1.0.3 lib/tweetstream/status.rb
tweetstream-1.0.2 lib/tweetstream/status.rb
tweetstream-1.0.1 lib/tweetstream/status.rb
tweetstream-1.0.0 lib/tweetstream/status.rb