Class: ROX::Column

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

Direct Known Subclasses

ComplexColumn, DateColumn, MappableColumn, TimeColumn

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(number, name, type, options = nil) ⇒ Column

Returns a new instance of Column.



7
8
9
10
11
12
# File 'lib/rox/rox.rb', line 7

def initialize(number, name, type, options = nil)
  @number = number
  @name = name
  @type = type
  @options = options
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/rox/rox.rb', line 5

def name
  @name
end

#numberObject

Returns the value of attribute number.



5
6
7
# File 'lib/rox/rox.rb', line 5

def number
  @number
end

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/rox/rox.rb', line 5

def options
  @options
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/rox/rox.rb', line 5

def type
  @type
end

Instance Method Details

#from_ox(client, value) ⇒ Object



18
19
20
# File 'lib/rox/rox.rb', line 18

def from_ox(client, value)
  value
end

#to_ox(client, value) ⇒ Object



14
15
16
# File 'lib/rox/rox.rb', line 14

def to_ox(client, value)
  value
end