Class: Tarantool16::SchemaSpace::Field

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, pos, type) ⇒ Field

Returns a new instance of Field.



219
220
221
222
223
# File 'lib/tarantool16/schema.rb', line 219

def initialize(name, pos, type)
  @name = name
  @pos = pos
  @type = type
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



218
219
220
# File 'lib/tarantool16/schema.rb', line 218

def name
  @name
end

#posObject (readonly)

Returns the value of attribute pos.



218
219
220
# File 'lib/tarantool16/schema.rb', line 218

def pos
  @pos
end

#typeObject (readonly)

Returns the value of attribute type.



218
219
220
# File 'lib/tarantool16/schema.rb', line 218

def type
  @type
end

Instance Method Details

#to_sObject



225
226
227
# File 'lib/tarantool16/schema.rb', line 225

def to_s
  "<Fields #{@name}@#{pos}>"
end