Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <td>
- Level 1
- <br>
- Attribute A: 24%
- <br>
- Attribute B: 14%
- <br>
- Attribute C: 15.5%
- </td>
- row.xpath('tr').each_with_index do |td, j|
- split_array << td.text.squish.split('%')
- end
- [["Level: 1 Attribute A: 24", "Attribute B: 14", "Attribute C, 15.5"],["Level: 2 Atribute A: 36", ..etc]..etc]
- [{:statistic => "Attribute A", :level_1 => 24.0},{:statistic => "Attribute B", :level_1 => 14.0},{:statistic => "Attribute C", :level_1 => 15.5}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement