class Maglev::Theme::SectionCategory

rubocop:disable Style/ClassAndModuleChildren

def self.build(hash)

def self.build(hash)
  attributes = hash.slice('name', 'id')
  attributes['id'] ||= attributes['name'].parameterize(separator: '_')
  new(attributes)
end

def self.build_many(list)

def self.build_many(list)
  (list || []).map { |hash| build(hash) }
end

def human_name

# methods ##
def human_name
  I18n.t("maglev.themes.#{theme.id}.categories.#{id}.name", default: name.humanize)
end