Class: DTK::Client::Violation::RequiredUnsetAttribute
- Inherits:
-
DTK::Client::Violation
- Object
- DTK::Client::Violation
- DTK::Client::Violation::RequiredUnsetAttribute
- Defined in:
- lib/violation/sub_classes.rb
Instance Method Summary collapse
- #get_input_and_apply_fix ⇒ Object
-
#initialize(service_id, violation_hash) ⇒ RequiredUnsetAttribute
constructor
A new instance of RequiredUnsetAttribute.
Methods inherited from DTK::Client::Violation
Constructor Details
#initialize(service_id, violation_hash) ⇒ RequiredUnsetAttribute
Returns a new instance of RequiredUnsetAttribute.
32 33 34 35 |
# File 'lib/violation/sub_classes.rb', line 32 def initialize(service_id, violation_hash) super @attribute = Attribute.new(violation_hash['attribute']) end |
Instance Method Details
#get_input_and_apply_fix ⇒ Object
37 38 39 |
# File 'lib/violation/sub_classes.rb', line 37 def get_input_and_apply_fix Fix::SetAttribute.get_input_and_apply_fix(@service_id, @attribute) end |