Class: ODBC::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/rsql/odbc.rb

Instance Method Summary collapse

Instance Method Details

#aliasObject



7
8
9
# File 'lib/rsql/odbc.rb', line 7

def alias
  @alias ||= name
end

#alias=(value) ⇒ Object



10
11
12
# File 'lib/rsql/odbc.rb', line 10

def alias=(value)
  @alias = value
end

#indexObject



13
14
15
# File 'lib/rsql/odbc.rb', line 13

def index
  @index ||= -1
end

#index=(value) ⇒ Object



16
17
18
# File 'lib/rsql/odbc.rb', line 16

def index=(value)
  @index = value
end

#widthObject



19
20
21
# File 'lib/rsql/odbc.rb', line 19

def width
  @width ||= self.alias.length
end

#width=(value) ⇒ Object



22
23
24
# File 'lib/rsql/odbc.rb', line 22

def width=(value)
  @width = value
end