Class: Yahoo::Stock::Query
- Inherits:
-
Object
- Object
- Yahoo::Stock::Query
- Defined in:
- lib/yahoo_stock/query.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(uri) ⇒ Query
constructor
A new instance of Query.
Constructor Details
permalink #initialize(uri) ⇒ Query
Returns a new instance of Query.
6 7 8 |
# File 'lib/yahoo_stock/query.rb', line 6 def initialize(uri) @uri = uri end |
Instance Attribute Details
permalink #uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/yahoo_stock/query.rb', line 4 def uri @uri end |
Instance Method Details
permalink #execute ⇒ Object
[View source]
10 11 12 |
# File 'lib/yahoo_stock/query.rb', line 10 def execute Hpricot(open(@uri).read) end |