Class: Odin::Types::SchemaImport
- Inherits:
-
Object
- Object
- Odin::Types::SchemaImport
- Defined in:
- lib/odin/types/schema.rb
Overview
Schema import directive
Instance Attribute Summary collapse
-
#alias_name ⇒ Object
readonly
Returns the value of attribute alias_name.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, alias_name: nil, line: 0) ⇒ SchemaImport
constructor
A new instance of SchemaImport.
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_name ⇒ Object (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 |
#line ⇒ Object (readonly)
Returns the value of attribute line.
252 253 254 |
# File 'lib/odin/types/schema.rb', line 252 def line @line end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
252 253 254 |
# File 'lib/odin/types/schema.rb', line 252 def path @path end |