Method: Primer::Yard::RegistryEntry#metadata

Defined in:
lib/primer/yard/registry.rb

#metadataObject

[View source]

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/primer/yard/registry.rb', line 23

def 
   ||= begin
    status_module, short_name, class_name = status_module_and_short_name(component)
    status = component.status.to_s
    a11y_reviewed = component.audited_at.nil? ? "false" : "true"

    {
      title: class_name,
      class_name: class_name,
      component_id: short_name.underscore,
      status: status.capitalize,
      status_module: status_module,
      short_name: short_name,
      a11y_reviewed: a11y_reviewed
    }
  end
end