Class: ROX::ComplexColumn
Instance Attribute Summary
Attributes inherited from Column
#name, #number, #options, #type
Instance Method Summary collapse
- #from_ox(client, value) ⇒ Object
-
#initialize(number, name, type, klass) ⇒ ComplexColumn
constructor
A new instance of ComplexColumn.
- #to_ox(client, value) ⇒ Object
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 |