Class: W3Clove::Message

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

Overview

A message holds a message_id, a line, a text and a type

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

Instance Attribute Summary collapse

Instance Attribute Details

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



9
10
11
# File 'lib/w3clove/message.rb', line 9

def line
  @line
end

#message_idObject

Returns the value of attribute message_id

Returns:

  • (Object)

    the current value of message_id



9
10
11
# File 'lib/w3clove/message.rb', line 9

def message_id
  @message_id
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



9
10
11
# File 'lib/w3clove/message.rb', line 9

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



9
10
11
# File 'lib/w3clove/message.rb', line 9

def type
  @type
end