Class: OpenGraphElement

Inherits:
HTMLProofer::Element show all
Defined in:
lib/html-proofer/check/opengraph.rb

Constant Summary

Constants included from HTMLProofer::Utils

HTMLProofer::Utils::STORAGE_DIR

Instance Attribute Summary

Attributes inherited from HTMLProofer::Element

#alt, #data_proofer_ignore, #href, #id, #line, #link, #name

Instance Method Summary collapse

Methods inherited from HTMLProofer::Element

#absolute_path, #allow_hash_href?, #base, #check_img_http?, #exists?, #external?, #file_path, #follow_location?, #hash, #ignore?, #ignore_alt?, #ignore_empty_alt?, #ignores_pattern_check, #initialize, #internal?, #non_http_remote?, #parts, #path, #remote?, #scheme, #unslashed_directory?, #valid?

Methods included from HTMLProofer::Utils

clean_content, create_nokogiri, #pluralize, swap

Constructor Details

This class inherits a constructor from HTMLProofer::Element

Instance Method Details

#srcObject



4
5
6
# File 'lib/html-proofer/check/opengraph.rb', line 4

def src
  @content
end

#urlObject



8
9
10
# File 'lib/html-proofer/check/opengraph.rb', line 8

def url
  src
end