Sha256: 35bab0d2299c59e0e628e51dc6f3e4aa4db27aaeee25cc864c02e833dfaec29c

Contents?: true

Size: 281 Bytes

Versions: 7

Compression:

Stored size: 281 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.1.5 lib/tweetstream/status.rb
tweetstream-1.1.4 lib/tweetstream/status.rb
tweetstream-1.1.3 lib/tweetstream/status.rb
tweetstream-1.1.2 lib/tweetstream/status.rb
tweetstream-1.1.1 lib/tweetstream/status.rb
tweetstream-1.1.0 lib/tweetstream/status.rb
tweetstream-1.1.0.rc2 lib/tweetstream/status.rb