Class: ExtensionParameterWithValue
- Inherits:
-
Object
- Object
- ExtensionParameterWithValue
- Defined in:
- lib/arch_obj_models/extension.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
The parameter value.
Instance Method Summary collapse
-
#desc ⇒ String
Asciidoc description.
- #extra_validation ⇒ String?
-
#exts ⇒ Extension
The extension that defines this parameter.
-
#initialize(param, value) ⇒ ExtensionParameterWithValue
constructor
A new instance of ExtensionParameterWithValue.
-
#name ⇒ String
Parameter name.
-
#schema ⇒ Hash
JSON Schema for the parameter value.
Constructor Details
#initialize(param, value) ⇒ ExtensionParameterWithValue
Returns a new instance of ExtensionParameterWithValue.
113 114 115 116 |
# File 'lib/arch_obj_models/extension.rb', line 113 def initialize(param, value) @param = param @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns The parameter value.
95 96 97 |
# File 'lib/arch_obj_models/extension.rb', line 95 def value @value end |
Instance Method Details
#desc ⇒ String
Returns Asciidoc description.
101 |
# File 'lib/arch_obj_models/extension.rb', line 101 def desc = @param.desc |
#extra_validation ⇒ String?
108 |
# File 'lib/arch_obj_models/extension.rb', line 108 def extra_validation = @param.extra_validation |
#exts ⇒ Extension
Returns The extension that defines this parameter.
111 |
# File 'lib/arch_obj_models/extension.rb', line 111 def exts = @param.exts |
#name ⇒ String
Returns Parameter name.
98 |
# File 'lib/arch_obj_models/extension.rb', line 98 def name = @param.name |
#schema ⇒ Hash
Returns JSON Schema for the parameter value.
104 |
# File 'lib/arch_obj_models/extension.rb', line 104 def schema = @param.schema |