module Lutaml::Uml::HasAttributes

Public Instance Methods

update_attributes(attributes = {}) click to toggle source
# File lib/lutaml/uml/has_attributes.rb, line 6
def update_attributes(attributes = {})
  attributes.to_h.each do |name, value|
    value = value.respond_to?(:str) ? value.str : value
    public_send("#{name}=", value)
  end
end