Sha256: 9909cb0927ab9a91e9ef69578e5cc51e4ba5411c2a61a80adbdd8ce010c2c1b1

Contents?: true

Size: 298 Bytes

Versions: 1

Compression:

Stored size: 298 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]) if self[:user]
  end
  
  def id
    self[:id] || super
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xh5-tweetstream-1.1.0 lib/tweetstream/status.rb