Class: Lutaml::Model::Schema::Definitions::TypeRef

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/model/schema/definitions/type_ref.rb

Overview

Reference to a Ruby type used in a generated attribute. kind ∈ :class_ref, :w3c.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind:, value:) ⇒ TypeRef

Returns a new instance of TypeRef.



12
13
14
15
# File 'lib/lutaml/model/schema/definitions/type_ref.rb', line 12

def initialize(kind:, value:)
  @kind = kind
  @value = value
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



10
11
12
# File 'lib/lutaml/model/schema/definitions/type_ref.rb', line 10

def kind
  @kind
end

#valueObject

Returns the value of attribute value.



10
11
12
# File 'lib/lutaml/model/schema/definitions/type_ref.rb', line 10

def value
  @value
end