Module: MoveToGo::SerializeHelper
- Included in:
- Address, ClassSettings, Coworker, CoworkerReference, CustomField, CustomFieldReference, CustomValue, Deal, DealReference, DealStatus, DealStatusReference, DealStatusSetting, Documents, File, History, Link, Meeting, Organization, OrganizationReference, Person, PersonReference, ReferenceToSource, RootModel, Settings, Todo
- Defined in:
- lib/move-to-go/serialize_helper.rb
Instance Method Summary collapse
-
#get_import_rows ⇒ Object
What fields/rows on the class is supposed to be used by the Gem to generate the xml This method uses #serialize_variables.
- #serialize ⇒ Object
- #serialize_to_file(file) ⇒ Object
Instance Method Details
#get_import_rows ⇒ Object
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 |
#serialize ⇒ Object
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 |