Class: Wapi::ConditionParser::Wind

Inherits:
Object
  • Object
show all
Includes:
InfoParser
Defined in:
lib/wapi/parsers/wind.rb

Class Method Summary collapse

Methods included from InfoParser

included

Class Method Details

.extract(html) ⇒ Object



11
12
13
14
15
16
# File 'lib/wapi/parsers/wind.rb', line 11

def self.extract html
  {
    direction: content_for(html, @xpath[:direction]),
    strength: content_for(html, @xpath[:strength])
  }
end