Class: TeradataCli::Field
- Inherits:
- 
      Object
      
        - Object
- TeradataCli::Field
 
- Extended by:
- Forwardable
- Defined in:
- lib/teradata-cli/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.
| 1126 1127 1128 1129 | # File 'lib/teradata-cli/connection.rb', line 1126 def initialize(, value) @metadata = @value = value end | 
Instance Attribute Details
#value ⇒ Object (readonly) Also known as: data
Returns the value of attribute value.
| 1131 1132 1133 | # File 'lib/teradata-cli/connection.rb', line 1131 def value @value end | 
Instance Method Details
#null? ⇒ Boolean
| 1147 1148 1149 | # File 'lib/teradata-cli/connection.rb', line 1147 def null? @value.nil? end | 
#to_s ⇒ Object
| 1151 1152 1153 | # File 'lib/teradata-cli/connection.rb', line 1151 def to_s "(#{name} #{@value.inspect})" end | 
#type ⇒ Object
| 1139 1140 1141 | # File 'lib/teradata-cli/connection.rb', line 1139 def type @metadata.type_name end | 
#type_code ⇒ Object
| 1143 1144 1145 | # File 'lib/teradata-cli/connection.rb', line 1143 def type_code @metadata.type_code end |