class ProxyFetcher::Document::NokogiriAdapter::Node

Nokogiri DOM node

Public Instance Methods

attr(*args) click to toggle source

Returns HTML node attribute value.

@return [String] attribute value

# File lib/proxy_fetcher/document/adapters/nokogiri_adapter.rb, line 30
def attr(*args)
  clear(node.attr(*args))
end
content() click to toggle source

Returns HTML node inner text value clean from whitespaces, tabs, etc.

@return [String] node inner text

# File lib/proxy_fetcher/document/adapters/nokogiri_adapter.rb, line 39
def content
  clear(node.content)
end
html() click to toggle source

Returns node inner HTML.

@return [String] inner HTML

# File lib/proxy_fetcher/document/adapters/nokogiri_adapter.rb, line 47
def html
  node.inner_html
end