Class: BSV::Identity::CertifierInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/bsv/identity/types.rb

Overview

Certifier metadata attached to a certificate for display purposes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, icon_url: nil) ⇒ CertifierInfo

Returns a new instance of CertifierInfo.

Parameters:

  • name (String)
  • icon_url (String, nil) (defaults to: nil)


57
58
59
60
# File 'lib/bsv/identity/types.rb', line 57

def initialize(name:, icon_url: nil)
  @name     = name
  @icon_url = icon_url
end

Instance Attribute Details

#icon_urlString? (readonly)

Returns URL or opaque string for the certifier’s icon.

Returns:

  • (String, nil)

    URL or opaque string for the certifier’s icon



53
54
55
# File 'lib/bsv/identity/types.rb', line 53

def icon_url
  @icon_url
end

#nameString (readonly)

Returns certifier’s display name.

Returns:

  • (String)

    certifier’s display name



50
51
52
# File 'lib/bsv/identity/types.rb', line 50

def name
  @name
end