Class: DTK::Client::Violation::RequiredUnsetAttribute

Inherits:
DTK::Client::Violation show all
Defined in:
lib/violation/sub_classes.rb

Instance Method Summary collapse

Methods inherited from DTK::Client::Violation

fix_violations

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_fixObject



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