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.



254
255
256
257
258
259
# File 'lib/odin/types/schema.rb', line 254

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.



252
253
254
# File 'lib/odin/types/schema.rb', line 252

def alias_name
  @alias_name
end

#lineObject (readonly)

Returns the value of attribute line.



252
253
254
# File 'lib/odin/types/schema.rb', line 252

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path.



252
253
254
# File 'lib/odin/types/schema.rb', line 252

def path
  @path
end