Module: Rails::AddOns::Service::Base::Attributes

Included in:
Rails::AddOns::Service::Base
Defined in:
app/services/rails/add_ons/service/base.rb

Instance Method Summary collapse

Instance Method Details

#set_attributes(attributes) ⇒ Object


41
42
43
44
45
# File 'app/services/rails/add_ons/service/base.rb', line 41

def set_attributes(attributes)
  attributes.each do |key, value|
    send("#{key}=", value)
  end
end