Class: Justicecz::Html::ResultList
- Inherits:
-
Object
- Object
- Justicecz::Html::ResultList
- Defined in:
- lib/justicecz/html/result_list.rb
Class Method Summary collapse
Instance Method Summary collapse
- #collection ⇒ Object
-
#initialize(body) ⇒ ResultList
constructor
A new instance of ResultList.
Constructor Details
#initialize(body) ⇒ ResultList
Returns a new instance of ResultList.
4 5 6 |
# File 'lib/justicecz/html/result_list.rb', line 4 def initialize(body) @body = body end |
Class Method Details
.collection(body) ⇒ Object
8 9 10 |
# File 'lib/justicecz/html/result_list.rb', line 8 def self.collection(body) new(body).collection end |
Instance Method Details
#collection ⇒ Object
12 13 14 |
# File 'lib/justicecz/html/result_list.rb', line 12 def collection @body.search('li.result table.result-details') end |