Class: HTMLProofer::Failure

Inherits:
Object
  • Object
show all
Defined in:
lib/html_proofer/failure.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, check_name, description, line: nil, status: nil, content: nil) ⇒ Failure

Returns a new instance of Failure.



7
8
9
10
11
12
13
14
15
# File 'lib/html_proofer/failure.rb', line 7

def initialize(path, check_name, description, line: nil, status: nil, content: nil)
  @path = path
  @check_name = check_name
  @description = description

  @line = line
  @status = status
  @content = content
end

Instance Attribute Details

#check_nameObject (readonly)

Returns the value of attribute check_name.



5
6
7
# File 'lib/html_proofer/failure.rb', line 5

def check_name
  @check_name
end

#contentObject (readonly)

Returns the value of attribute content.



5
6
7
# File 'lib/html_proofer/failure.rb', line 5

def content
  @content
end

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/html_proofer/failure.rb', line 5

def description
  @description
end

#lineObject (readonly)

Returns the value of attribute line.



5
6
7
# File 'lib/html_proofer/failure.rb', line 5

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/html_proofer/failure.rb', line 5

def path
  @path
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/html_proofer/failure.rb', line 5

def status
  @status
end