Class: Chef::Attribute::Validator::Violation

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-attribute-validator/violation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a_rule_name, a_path, a_message) ⇒ Violation

Returns a new instance of Violation.



9
10
11
12
13
# File 'lib/chef-attribute-validator/violation.rb', line 9

def initialize(a_rule_name, a_path, a_message)
  @rule_name = a_rule_name
  @path = a_path
  @message = a_message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/chef-attribute-validator/violation.rb', line 7

def message
  @message
end

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/chef-attribute-validator/violation.rb', line 6

def path
  @path
end

#rule_nameObject (readonly)

Returns the value of attribute rule_name.



5
6
7
# File 'lib/chef-attribute-validator/violation.rb', line 5

def rule_name
  @rule_name
end