Class: Dsu::Migration::RawJsonFile

Inherits:
Crud::JsonFile show all
Defined in:
lib/dsu/migration/raw_json_file.rb

Instance Attribute Summary

Attributes inherited from Crud::JsonFile

#file_path, #version

Instance Method Summary collapse

Methods inherited from Crud::JsonFile

delete, #delete, delete!, #delete!, file_does_not_exist_message, #file_exist?, file_exist?, #initialize, parse, #persisted?, read, read!, #reload, #save, #save!, #to_model, #update_version!, #write, write, #write!, write!

Constructor Details

This class inherits a constructor from Dsu::Crud::JsonFile

Instance Method Details

#to_hObject



10
11
12
# File 'lib/dsu/migration/raw_json_file.rb', line 10

def to_h
  read.merge(version: version)
end