Class: Odin::Types::SchemaImport

Inherits:
Object
  • Object
show all
Defined in:
lib/odin/types/schema.rb

Overview

Schema import directive

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, alias_name: nil, line: 0) ⇒ SchemaImport

Returns a new instance of SchemaImport.



260
261
262
263
264
265
# File 'lib/odin/types/schema.rb', line 260

def initialize(path:, alias_name: nil, line: 0)
  @path = path.freeze
  @alias_name = alias_name&.freeze
  @line = line
  freeze
end

Instance Attribute Details

#alias_nameObject (readonly)

Returns the value of attribute alias_name.



258
259
260
# File 'lib/odin/types/schema.rb', line 258

def alias_name
  @alias_name
end

#lineObject (readonly)

Returns the value of attribute line.



258
259
260
# File 'lib/odin/types/schema.rb', line 258

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



258
259
260
# File 'lib/odin/types/schema.rb', line 258

def path
  @path
end