Class: Teradata::Field
- Inherits:
-
Object
- Object
- Teradata::Field
- Extended by:
- Forwardable
- Defined in:
- lib/teradata/connection.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
(also: #data)
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(metadata, value) ⇒ Field
constructor
A new instance of Field.
- #null? ⇒ Boolean
- #to_s ⇒ Object
- #type ⇒ Object
- #type_code ⇒ Object
Constructor Details
#initialize(metadata, value) ⇒ Field
Returns a new instance of Field.
1094 1095 1096 1097 |
# File 'lib/teradata/connection.rb', line 1094 def initialize(, value) = @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly) Also known as: data
Returns the value of attribute value.
1099 1100 1101 |
# File 'lib/teradata/connection.rb', line 1099 def value @value end |
Instance Method Details
#null? ⇒ Boolean
1115 1116 1117 |
# File 'lib/teradata/connection.rb', line 1115 def null? @value.nil? end |
#to_s ⇒ Object
1119 1120 1121 |
# File 'lib/teradata/connection.rb', line 1119 def to_s "(#{name} #{@value.inspect})" end |
#type ⇒ Object
1107 1108 1109 |
# File 'lib/teradata/connection.rb', line 1107 def type .type_name end |
#type_code ⇒ Object
1111 1112 1113 |
# File 'lib/teradata/connection.rb', line 1111 def type_code .type_code end |