hostelify 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/hostelify/hostelworld.rb +4 -1
- data/lib/hostelify/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -9,7 +9,10 @@ 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.roomtype tr
|
12
|
+
elements 'table.roomtype tr' => :rooms do
|
13
|
+
element 'td span[@style="display:none;"]' => :title, :with => lambda { |node| node.inner_text.lstrip.rstrip }
|
14
|
+
end
|
15
|
+
|
13
16
|
elements 'table.availability tr' => :beds do
|
14
17
|
elements 'td' => :nights do
|
15
18
|
element '.currency' => :price, :with => lambda { |node| node.inner_text.to_f }
|
data/lib/hostelify/version.rb
CHANGED