Class: W3CValidators::Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/w3c_validators/validator.rb

Overview

Base class for MarkupValidator and FeedValidator.

Constant Summary collapse

VERSION =
'0.9.3'
USER_AGENT =
"Ruby W3C Validators/#{Validator::VERSION} (http://code.dunae.ca/w3c_validators/)"
HEAD_STATUS_HEADER =
'X-W3C-Validator-Status'
HEAD_ERROR_COUNT_HEADER =
'X-W3C-Validator-Errors'
SOAP_OUTPUT_PARAM =
'soap12'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Validator

Create a new instance of the Validator.



23
24
25
# File 'lib/w3c_validators/validator.rb', line 23

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#resultsObject (readonly)

Returns the value of attribute results.



20
21
22
# File 'lib/w3c_validators/validator.rb', line 20

def results
  @results
end

#validator_uriObject (readonly)

Returns the value of attribute validator_uri.



20
21
22
# File 'lib/w3c_validators/validator.rb', line 20

def validator_uri
  @validator_uri
end