Class: Chef::Attribute::Validator::Violation
- Inherits:
-
Object
- Object
- Chef::Attribute::Validator::Violation
- Defined in:
- lib/chef-attribute-validator/violation.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#rule_name ⇒ Object
readonly
Returns the value of attribute rule_name.
Instance Method Summary collapse
-
#initialize(a_rule_name, a_path, a_message) ⇒ Violation
constructor
A new instance of Violation.
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, ) @rule_name = a_rule_name @path = a_path @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/chef-attribute-validator/violation.rb', line 7 def @message end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/chef-attribute-validator/violation.rb', line 6 def path @path end |
#rule_name ⇒ Object (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 |