Class: ExtensionParameterWithValue

Inherits:
Object
  • Object
show all
Defined in:
lib/arch_obj_models/extension.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (readonly)

Returns The parameter value.

Returns:

  • (Object)

    The parameter value



95
96
97
# File 'lib/arch_obj_models/extension.rb', line 95

def value
  @value
end

Instance Method Details

#descString

Returns Asciidoc description.

Returns:

  • (String)

    Asciidoc description



101
# File 'lib/arch_obj_models/extension.rb', line 101

def desc = @param.desc

#extra_validationString?

Returns:

  • (String)

    Ruby code to perform validation above and beyond JSON schema

  • (nil)

    If there is no extra validatino



108
# File 'lib/arch_obj_models/extension.rb', line 108

def extra_validation = @param.extra_validation

#extsExtension

Returns The extension that defines this parameter.

Returns:

  • (Extension)

    The extension that defines this parameter



111
# File 'lib/arch_obj_models/extension.rb', line 111

def exts = @param.exts

#nameString

Returns Parameter name.

Returns:

  • (String)

    Parameter name



98
# File 'lib/arch_obj_models/extension.rb', line 98

def name = @param.name

#schemaHash

Returns JSON Schema for the parameter value.

Returns:

  • (Hash)

    JSON Schema for the parameter value



104
# File 'lib/arch_obj_models/extension.rb', line 104

def schema = @param.schema