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.



237
238
239
240
241
242
# File 'lib/odin/types/schema.rb', line 237

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.



235
236
237
# File 'lib/odin/types/schema.rb', line 235

def alias_name
  @alias_name
end

#lineObject (readonly)

Returns the value of attribute line.



235
236
237
# File 'lib/odin/types/schema.rb', line 235

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



235
236
237
# File 'lib/odin/types/schema.rb', line 235

def path
  @path
end