Class: Schema::Controls::DataStructure::ReadAndWrite::Example

Inherits:
Object
  • Object
show all
Includes:
DataStructure
Defined in:
lib/schema/controls/data_structure.rb

Instance Method Summary collapse

Methods included from DataStructure

#clone, #deep_copy, included

Instance Method Details

#transform_read(data) ⇒ Object



75
76
77
# File 'lib/schema/controls/data_structure.rb', line 75

def transform_read(data)
  data[:some_attribute] = 'some read value'
end

#transform_write(data) ⇒ Object



79
80
81
# File 'lib/schema/controls/data_structure.rb', line 79

def transform_write(data)
  data[:some_attribute] = 'some written value'
end