Method: OpenC3::MigrationModel#as_json

Defined in:
lib/openc3/models/migration_model.rb

#as_json(*a) ⇒ Hash

Returns JSON encoding of this model.

Returns:

  • (Hash)

    JSON encoding of this model



45
46
47
48
49
50
# File 'lib/openc3/models/migration_model.rb', line 45

def as_json(*a)
  {
    'name' => @name,
    'updated_at' => @updated_at
  }
end