Class: Ralexa::Result
- Inherits:
-
Object
- Object
- Ralexa::Result
- Defined in:
- lib/ralexa/result.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(client, host, path, parameters, &parser) ⇒ Result
constructor
A new instance of Result.
- #result ⇒ Object
Constructor Details
#initialize(client, host, path, parameters, &parser) ⇒ Result
Returns a new instance of Result.
6 7 8 9 10 11 12 |
# File 'lib/ralexa/result.rb', line 6 def initialize(client, host, path, parameters, &parser) @client = client @host = host @path = path @parameters = parameters @parser = parser end |
Instance Method Details
#result ⇒ Object
14 15 16 |
# File 'lib/ralexa/result.rb', line 14 def result parse(fetch(@parameters)) end |