Method: Ubiquitously::Base#apply

Defined in:
lib/ubiquitously/models/base.rb

#apply(attributes) ⇒ Object



8
9
10
11
12
# File 'lib/ubiquitously/models/base.rb', line 8

def apply(attributes)
  attributes.each do |key, value|
    self.send("#{key.to_s}=", value) if self.respond_to?(key)
  end
end