Module: MoveToGo::SerializeHelper

Instance Method Summary collapse

Instance Method Details

#get_import_rowsObject

What fields/rows on the class is supposed to be used by the Gem to generate the xml This method uses #serialize_variables.



175
176
177
178
179
# File 'lib/move-to-go/serialize_helper.rb', line 175

def get_import_rows
    serialize_variables.map do |p|
        map_to_row p
    end
end

#serializeObject



6
7
8
# File 'lib/move-to-go/serialize_helper.rb', line 6

def serialize()
    SerializeHelper::serialize(self)
end

#serialize_to_file(file) ⇒ Object



10
11
12
# File 'lib/move-to-go/serialize_helper.rb', line 10

def serialize_to_file(file)
    SerializeHelper::serialize_to_file(file, self)
end