class DTK::Client::Violation::InvalidCredentials
Public Class Methods
new(service_id, violation_hash)
click to toggle source
Calls superclass method
# File lib/violation/sub_classes.rb, line 44 def initialize(service_id, violation_hash) super @attributes = violation_hash['fix_hashes'].map { |hash| Attribute.new(hash['attribute']) } end
Public Instance Methods
get_input_and_apply_fix()
click to toggle source
# File lib/violation/sub_classes.rb, line 49 def get_input_and_apply_fix result = nil @attributes.each do |attribute| result = Fix::SetAttribute.get_input_and_apply_fix(@service_id, attribute) return result if result.skip_all? or result.error? end result.ok? ? Fix::Result.rerun_violation_check : result end