lib/after_ship/core/attributes.rb
# Loop through the data hash and for each key call a setter with the value.
#
# @param data [Hash]
Loop through the data hash and for each key call a setter with the value.
Loop through the data hash and for each key call a setter with the value .
def load_attributes(data)
      data.each do |attribute, value|
        setter = "#{attribute}="
        send(setter, value) if respond_to?(setter)
      end
    end
def load_attributes ( data ) data . each do | attribute , value | setter = "#{attribute}=" send ( setter , value ) if respond_to? ( setter ) end end
Loop through the data hash and for each key call a setter with the value.
Loop through the data hash and for each key call a setter with the value .
data
<not_specific>
<not_specific>
None