Class: BSV::Registry::BasketDefinitionData
- Inherits:
-
Object
- Object
- BSV::Registry::BasketDefinitionData
- Defined in:
- lib/bsv/registry/types.rb
Overview
Registry data for a basket definition.
Instance Attribute Summary collapse
-
#basket_id ⇒ String
readonly
Unique basket identifier.
-
#definition_type ⇒ String
readonly
Always DefinitionType::BASKET.
-
#description ⇒ String
readonly
Description of the basket’s purpose.
-
#documentation_url ⇒ String
readonly
URL to the basket documentation.
-
#icon_url ⇒ String
readonly
URL or opaque string for the basket icon.
-
#name ⇒ String
readonly
Human-readable name.
-
#registry_operator ⇒ String?
readonly
Public key hex of the registry operator.
Instance Method Summary collapse
-
#initialize(basket_id:, name:, icon_url:, description:, documentation_url:, registry_operator: nil) ⇒ BasketDefinitionData
constructor
A new instance of BasketDefinitionData.
Constructor Details
#initialize(basket_id:, name:, icon_url:, description:, documentation_url:, registry_operator: nil) ⇒ BasketDefinitionData
Returns a new instance of BasketDefinitionData.
84 85 86 87 88 89 90 91 92 93 |
# File 'lib/bsv/registry/types.rb', line 84 def initialize(basket_id:, name:, icon_url:, description:, documentation_url:, registry_operator: nil) @definition_type = DefinitionType::BASKET @basket_id = basket_id @name = name @icon_url = icon_url @description = description @documentation_url = documentation_url @registry_operator = registry_operator end |
Instance Attribute Details
#basket_id ⇒ String (readonly)
Returns unique basket identifier.
61 62 63 |
# File 'lib/bsv/registry/types.rb', line 61 def basket_id @basket_id end |
#definition_type ⇒ String (readonly)
Returns always DefinitionType::BASKET.
58 59 60 |
# File 'lib/bsv/registry/types.rb', line 58 def definition_type @definition_type end |
#description ⇒ String (readonly)
Returns description of the basket’s purpose.
70 71 72 |
# File 'lib/bsv/registry/types.rb', line 70 def description @description end |
#documentation_url ⇒ String (readonly)
Returns URL to the basket documentation.
73 74 75 |
# File 'lib/bsv/registry/types.rb', line 73 def documentation_url @documentation_url end |
#icon_url ⇒ String (readonly)
Returns URL or opaque string for the basket icon.
67 68 69 |
# File 'lib/bsv/registry/types.rb', line 67 def icon_url @icon_url end |
#name ⇒ String (readonly)
Returns human-readable name.
64 65 66 |
# File 'lib/bsv/registry/types.rb', line 64 def name @name end |
#registry_operator ⇒ String? (readonly)
Returns public key hex of the registry operator.
76 77 78 |
# File 'lib/bsv/registry/types.rb', line 76 def registry_operator @registry_operator end |