Class: Yahoo::Stock::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/yahoo_stock/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Query

Returns a new instance of Query.

[View source]

6
7
8
# File 'lib/yahoo_stock/query.rb', line 6

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject

Returns the value of attribute uri.


4
5
6
# File 'lib/yahoo_stock/query.rb', line 4

def uri
  @uri
end

Instance Method Details

#executeObject

[View source]

10
11
12
# File 'lib/yahoo_stock/query.rb', line 10

def execute
  Hpricot(open(@uri).read)
end