Class: Lutaml::Model::Schema::Definitions::TypeRef
- Inherits:
-
Object
- Object
- Lutaml::Model::Schema::Definitions::TypeRef
- 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
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(kind:, value:) ⇒ TypeRef
constructor
A new instance of TypeRef.
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
#kind ⇒ Object
Returns the value of attribute kind.
10 11 12 |
# File 'lib/lutaml/model/schema/definitions/type_ref.rb', line 10 def kind @kind end |
#value ⇒ Object
Returns the value of attribute value.
10 11 12 |
# File 'lib/lutaml/model/schema/definitions/type_ref.rb', line 10 def value @value end |