Class: JDBC::Column
- Inherits:
-
Object
- Object
- JDBC::Column
- Defined in:
- lib/jdbc/column.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#jdbc_type ⇒ Object
readonly
Returns the value of attribute jdbc_type.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
- #coerce_proc ⇒ Object
-
#initialize(index:, label:, jdbc_type:) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(index:, label:, jdbc_type:) ⇒ Column
Returns a new instance of Column.
5 6 7 8 9 |
# File 'lib/jdbc/column.rb', line 5 def initialize(index:, label:, jdbc_type:) @index = index @label = label @jdbc_type = jdbc_type end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
3 4 5 |
# File 'lib/jdbc/column.rb', line 3 def index @index end |
#jdbc_type ⇒ Object (readonly)
Returns the value of attribute jdbc_type.
3 4 5 |
# File 'lib/jdbc/column.rb', line 3 def jdbc_type @jdbc_type end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'lib/jdbc/column.rb', line 3 def label @label end |
Instance Method Details
#coerce_proc ⇒ Object
11 12 13 |
# File 'lib/jdbc/column.rb', line 11 def coerce_proc Coercions.public_send(COERCIONS_MAP.fetch(jdbc_type, :identity)) end |