hostelify 0.6.9 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hostelify/hostelworld.rb +1 -1
- data/lib/hostelify/version.rb +1 -1
- metadata +1 -1
@@ -9,7 +9,7 @@ class Hostelworld < Nibbler
|
|
9
9
|
elements '.rating-values li' => :ratings, :with => lambda { |node| node.inner_text.to_i }
|
10
10
|
element 'script[19]' => :base_currency, :with => lambda { |node| node.inner_text.scan(/\$\.Microsite\.propertyCurrency = \'(.*)\';/).to_s }
|
11
11
|
|
12
|
-
elements 'table
|
12
|
+
elements '//table[@class="roomtype"]//tr[position() > 1]' => :rooms do
|
13
13
|
element 'td span[@style="display:none;"]' => :title, :with => lambda { |node| node.inner_text.lstrip.rstrip }
|
14
14
|
end
|
15
15
|
|
data/lib/hostelify/version.rb
CHANGED