Method: Fog::Hyperv::ModelIncludes#dirty?

Defined in:
lib/fog/model.rb

#dirty?Boolean

Returns:

  • (Boolean)


15
16
17
18
19
# File 'lib/fog/model.rb', line 15

def dirty?
  attributes.reject do |k, v|
    !self.class.attributes.include?(k) || lazy_attributes.include?(k) || (old ? old.attributes[k] == v : false)
  end.any?
end