Class: Odin::Transform::TransformHeader
- Inherits:
-
Object
- Object
- Odin::Transform::TransformHeader
- Defined in:
- lib/odin/transform/transform_types.rb
Overview
Transform header — the $ section
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
-
#enforce_confidential ⇒ Object
readonly
Returns the value of attribute enforce_confidential.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#odin_version ⇒ Object
readonly
Returns the value of attribute odin_version.
-
#source_options ⇒ Object
readonly
Returns the value of attribute source_options.
-
#strict_types ⇒ Object
readonly
Returns the value of attribute strict_types.
-
#target_format ⇒ Object
readonly
Returns the value of attribute target_format.
-
#target_namespaces ⇒ Object
readonly
Returns the value of attribute target_namespaces.
-
#target_options ⇒ Object
readonly
Returns the value of attribute target_options.
-
#transform_version ⇒ Object
readonly
Returns the value of attribute transform_version.
Instance Method Summary collapse
-
#initialize(odin_version: "1.0.0", transform_version: "1.0.0", direction: nil, target_format: nil, enforce_confidential: ConfidentialMode::NONE, source_options: {}, target_options: {}, target_namespaces: {}, strict_types: false, id: nil, name: nil) ⇒ TransformHeader
constructor
A new instance of TransformHeader.
Constructor Details
#initialize(odin_version: "1.0.0", transform_version: "1.0.0", direction: nil, target_format: nil, enforce_confidential: ConfidentialMode::NONE, source_options: {}, target_options: {}, target_namespaces: {}, strict_types: false, id: nil, name: nil) ⇒ TransformHeader
Returns a new instance of TransformHeader.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/odin/transform/transform_types.rb', line 99 def initialize( odin_version: "1.0.0", transform_version: "1.0.0", direction: nil, target_format: nil, enforce_confidential: ConfidentialMode::NONE, source_options: {}, target_options: {}, target_namespaces: {}, strict_types: false, id: nil, name: nil ) @odin_version = odin_version @transform_version = transform_version @direction = direction @target_format = target_format @enforce_confidential = enforce_confidential @source_options = @target_options = @target_namespaces = target_namespaces @strict_types = strict_types @id = id @name = name end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def direction @direction end |
#enforce_confidential ⇒ Object (readonly)
Returns the value of attribute enforce_confidential.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def enforce_confidential @enforce_confidential end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def name @name end |
#odin_version ⇒ Object (readonly)
Returns the value of attribute odin_version.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def odin_version @odin_version end |
#source_options ⇒ Object (readonly)
Returns the value of attribute source_options.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def @source_options end |
#strict_types ⇒ Object (readonly)
Returns the value of attribute strict_types.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def strict_types @strict_types end |
#target_format ⇒ Object (readonly)
Returns the value of attribute target_format.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def target_format @target_format end |
#target_namespaces ⇒ Object (readonly)
Returns the value of attribute target_namespaces.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def target_namespaces @target_namespaces end |
#target_options ⇒ Object (readonly)
Returns the value of attribute target_options.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def @target_options end |
#transform_version ⇒ Object (readonly)
Returns the value of attribute transform_version.
94 95 96 |
# File 'lib/odin/transform/transform_types.rb', line 94 def transform_version @transform_version end |