Method: Cosmos::MetadataModel#initialize
- Defined in:
- lib/cosmos/models/metadata_model.rb
#initialize(scope:, start:, color: nil, metadata:, constraints: nil, type: METADATA_TYPE, updated_at: 0) ⇒ MetadataModel
Returns a new instance of MetadataModel.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/cosmos/models/metadata_model.rb', line 40 def initialize( scope:, start:, color: nil, metadata:, constraints: nil, type: METADATA_TYPE, updated_at: 0 ) super(start: start, scope: scope, updated_at: updated_at) @start = start @color = color @metadata = @constraints = constraints if constraints @type = type # For the as_json, from_json round trip end |