module Lutaml::Model::Serialize::ClassMethods
def attribute(name, type, options = {})
def attribute(name, type, options = {}) if type.is_a?(Hash) options[:method_name] = type[:method] type = nil end attr = Attribute.new(name, type, options) attributes[name] = attr define_attribute_methods(attr) attr end