Class: Odin::Transform::TransformHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/odin/transform/transform_types.rb

Overview

Transform header — the $ section

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = source_options
  @target_options = target_options
  @target_namespaces = target_namespaces
  @strict_types = strict_types
  @id = id
  @name = name
end

Instance Attribute Details

#directionObject (readonly)

Returns the value of attribute direction.



94
95
96
# File 'lib/odin/transform/transform_types.rb', line 94

def direction
  @direction
end

#enforce_confidentialObject (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

#idObject (readonly)

Returns the value of attribute id.



94
95
96
# File 'lib/odin/transform/transform_types.rb', line 94

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



94
95
96
# File 'lib/odin/transform/transform_types.rb', line 94

def name
  @name
end

#odin_versionObject (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_optionsObject (readonly)

Returns the value of attribute source_options.



94
95
96
# File 'lib/odin/transform/transform_types.rb', line 94

def source_options
  @source_options
end

#strict_typesObject (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_formatObject (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_namespacesObject (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_optionsObject (readonly)

Returns the value of attribute target_options.



94
95
96
# File 'lib/odin/transform/transform_types.rb', line 94

def target_options
  @target_options
end

#transform_versionObject (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