Module: BBCMobileStandards

Defined in:
lib/bbc_mobile_standards.rb,
lib/bbc_mobile_standards/proxy.rb,
lib/bbc_mobile_standards/version.rb,
lib/bbc_mobile_standards/html_validator.rb,
lib/bbc_mobile_standards/accessibility_validator.rb

Defined Under Namespace

Classes: AccessibilityValidator, HTMLValidator, Proxy

Constant Summary collapse

VERSION =
"0.0.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.accessibility_errorsObject (readonly)

Returns the value of attribute accessibility_errors.



11
12
13
# File 'lib/bbc_mobile_standards.rb', line 11

def accessibility_errors
  @accessibility_errors
end

.html_errorsObject (readonly)

Returns the value of attribute html_errors.



11
12
13
# File 'lib/bbc_mobile_standards.rb', line 11

def html_errors
  @html_errors
end

Class Method Details

.new(url) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/bbc_mobile_standards.rb', line 13

def new(url)
  @html_errors = []
  @accessibility_errors = []
  @valid = true
  @url = url
  load_html
  validate
  self
end

.valid?Boolean

Returns:

  • (Boolean)


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

def valid?
  @valid
end