Class: Embulk::Column
- Inherits:
-
Struct
- Object
- Struct
- Embulk::Column
- Defined in:
- lib/embulk/column.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(index, name, type) ⇒ Column
constructor
A new instance of Column.
- #to_java ⇒ Object
Constructor Details
#initialize(index, name, type) ⇒ Column
Returns a new instance of Column.
4 5 6 |
# File 'lib/embulk/column.rb', line 4 def initialize(index, name, type) super(index, name, type) end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index
3 4 5 |
# File 'lib/embulk/column.rb', line 3 def index @index end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/embulk/column.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/embulk/column.rb', line 3 def type @type end |
Class Method Details
Instance Method Details
#to_java ⇒ Object
16 17 18 |
# File 'lib/embulk/column.rb', line 16 def to_java Java::Column.new(index, name, Type.new_java_type(type)) end |