class ClimateControl::Modifier::OverlappingKeysWithChangedValues
Public Class Methods
new(hash_1, hash_2)
click to toggle source
# File lib/climate_control/modifier.rb, line 74 def initialize(hash_1, hash_2) @hash_1 = hash_1 || {} @hash_2 = hash_2 end
Public Instance Methods
keys()
click to toggle source
# File lib/climate_control/modifier.rb, line 79 def keys overlapping_keys.select do |overlapping_key| @hash_1[overlapping_key] != @hash_2[overlapping_key] end end
Private Instance Methods
overlapping_keys()
click to toggle source
# File lib/climate_control/modifier.rb, line 87 def overlapping_keys @hash_2.keys & @hash_1.keys end