Class: W3CValidators::Validator
- Inherits:
-
Object
- Object
- W3CValidators::Validator
- Defined in:
- lib/w3c_validators/validator.rb
Overview
Base class for MarkupValidator and FeedValidator.
Direct Known Subclasses
Constant Summary collapse
- USER_AGENT =
"Ruby W3C Validators/#{VERSION} (https://github.com/alexdunae/w3c_validators/)"
- HEAD_STATUS_HEADER =
'X-W3C-Validator-Status'
- HEAD_ERROR_COUNT_HEADER =
'X-W3C-Validator-Errors'
- SOAP_OUTPUT_PARAM =
'soap12'
- USE_NEW_EXCEPTION =
Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6')
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#validator_uri ⇒ Object
readonly
Returns the value of attribute validator_uri.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Validator
constructor
Create a new instance of the Validator.
Constructor Details
#initialize(options = {}) ⇒ Validator
Create a new instance of the Validator.
options
Hash can optionally include
-
proxy_host
-
proxy_port
-
proxy_user
-
proxy_pass
30 31 32 33 34 35 |
# File 'lib/w3c_validators/validator.rb', line 30 def initialize( = {}) @options = {:proxy_host => nil, :proxy_port => nil, :proxy_user => nil, :proxy_pass => nil}.merge() end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
21 22 23 |
# File 'lib/w3c_validators/validator.rb', line 21 def results @results end |
#validator_uri ⇒ Object (readonly)
Returns the value of attribute validator_uri.
21 22 23 |
# File 'lib/w3c_validators/validator.rb', line 21 def validator_uri @validator_uri end |