Class: ROX::ComplexColumn

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

Instance Attribute Summary

Attributes inherited from Column

#name, #number, #options, #type

Instance Method Summary collapse

Constructor Details

#initialize(number, name, type, klass) ⇒ ComplexColumn

Returns a new instance of ComplexColumn.



66
67
68
69
# File 'lib/rox/rox.rb', line 66

def initialize(number, name, type, klass)
  super(number, name, type, klass)
  @klass = klass
end

Instance Method Details

#from_ox(client, value) ⇒ Object



71
72
73
# File 'lib/rox/rox.rb', line 71

def from_ox(client, value)
  @klass.new(value)
end

#to_ox(client, value) ⇒ Object



75
76
77
# File 'lib/rox/rox.rb', line 75

def to_ox(client, value)
  value.to_ox
end