Class: Moku6::Offense

Inherits:
Struct
  • Object
show all
Defined in:
lib/moku6/offense.rb

Overview

keyword_init is required on Ruby 3.1 (required_ruby_version >= 3.1.0).

Instance Attribute Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



5
6
7
# File 'lib/moku6/offense.rb', line 5

def action
  @action
end

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



5
6
7
# File 'lib/moku6/offense.rb', line 5

def file
  @file
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



5
6
7
# File 'lib/moku6/offense.rb', line 5

def message
  @message
end

#ruleObject

Returns the value of attribute rule

Returns:

  • (Object)

    the current value of rule



5
6
7
# File 'lib/moku6/offense.rb', line 5

def rule
  @rule
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



5
6
7
# File 'lib/moku6/offense.rb', line 5

def severity
  @severity
end