Class: SiteValidator::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/site_validator/message.rb

Overview

A message holds a message_id, a line, a text a type and a source (for the code snippet)

See the W3C message explanation list on validator.w3.org/docs/errors.html

Instance Attribute Summary collapse

Instance Attribute Details

#colObject

Returns the value of attribute col

Returns:

  • (Object)

    the current value of col



10
11
12
# File 'lib/site_validator/message.rb', line 10

def col
  @col
end

#explanationObject

Returns the value of attribute explanation

Returns:

  • (Object)

    the current value of explanation



10
11
12
# File 'lib/site_validator/message.rb', line 10

def explanation
  @explanation
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



10
11
12
# File 'lib/site_validator/message.rb', line 10

def line
  @line
end

#message_idObject

Returns the value of attribute message_id

Returns:

  • (Object)

    the current value of message_id



10
11
12
# File 'lib/site_validator/message.rb', line 10

def message_id
  @message_id
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



10
11
12
# File 'lib/site_validator/message.rb', line 10

def source
  @source
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



10
11
12
# File 'lib/site_validator/message.rb', line 10

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



10
11
12
# File 'lib/site_validator/message.rb', line 10

def type
  @type
end