Class: Justicecz::Html::ResultList

Inherits:
Object
  • Object
show all
Defined in:
lib/justicecz/html/result_list.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#collectionObject



12
13
14
# File 'lib/justicecz/html/result_list.rb', line 12

def collection
  @body.search('li.result table.result-details')
end