Class: Wapi::ConditionParser::Waves

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

Class Method Summary collapse

Methods included from InfoParser

included

Class Method Details

.extract(html) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/wapi/parsers/waves.rb', line 12

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