Class: Tsumamigui::Parser
- Inherits:
-
Object
- Object
- Tsumamigui::Parser
- Defined in:
- lib/tsumamigui/parser.rb
Instance Attribute Summary collapse
-
#xpath ⇒ Object
readonly
Returns the value of attribute xpath.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(xpath) ⇒ Parser
constructor
A new instance of Parser.
Constructor Details
#initialize(xpath) ⇒ Parser
18 19 20 |
# File 'lib/tsumamigui/parser.rb', line 18 def initialize(xpath) @xpath = xpath end |
Instance Attribute Details
#xpath ⇒ Object (readonly)
Returns the value of attribute xpath.
6 7 8 |
# File 'lib/tsumamigui/parser.rb', line 6 def xpath @xpath end |
Class Method Details
.parse(responses, xpath) ⇒ Array<Hash>
12 13 14 |
# File 'lib/tsumamigui/parser.rb', line 12 def parse(responses, xpath) new(xpath).send(:parse, responses) end |