Skip to content

Class BSV::Registry::CertificateFieldDescriptor

Inherits: Object

Describes the structure and metadata for a single certificate field.

Used within {CertificateDefinitionData} to document the shape of each field in a certificate schema.

Attributes

description [R]

  • @return [String] description of the field's purpose

field_icon [R]

  • @return [String] icon identifier for the field

friendly_name [R]

  • @return [String] human-readable field name

type [R]

  • @return [String] field type: 'text', 'imageURL', or 'other'

Public Instance Methods

initialize(friendly_name:, description:, type:, field_icon:)

  • @param friendly_name [String]
  • @param description [String]
  • @param type [String] 'text', 'imageURL', or 'other'
  • @param field_icon [String]
  • @return [CertificateFieldDescriptor] a new instance of CertificateFieldDescriptor

to_h()

Serialise to a plain Hash for JSON encoding. - @return [Hash]