Class: Tarantool16::SchemaSpace::Field
- Inherits:
-
Object
- Object
- Tarantool16::SchemaSpace::Field
- Defined in:
- lib/tarantool16/schema.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, pos, type) ⇒ Field
constructor
A new instance of Field.
- #to_s ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
218 219 220 |
# File 'lib/tarantool16/schema.rb', line 218 def name @name end |
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
218 219 220 |
# File 'lib/tarantool16/schema.rb', line 218 def pos @pos end |
#type ⇒ Object (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_s ⇒ Object
225 226 227 |
# File 'lib/tarantool16/schema.rb', line 225 def to_s "<Fields #{@name}@#{pos}>" end |