Class: Net::Twitter::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/net/twitter/status.rb

Defined Under Namespace

Classes: Feature, Features

Constant Summary collapse

VERSION =
'0.0.1'

Instance Method Summary collapse

Instance Method Details

#featuresObject



65
66
67
68
69
70
71
72
# File 'lib/net/twitter/status.rb', line 65

def features
  doc = Hpricot(open('http://status.twitter.com/').read)
  elements = doc.search('//div[@id="description"]//span').map do |element|
    element
  end

  Features.new(elements)
end