Class: Lutaml::Store::Format::Base
- Inherits:
-
Object
- Object
- Lutaml::Store::Format::Base
show all
- Defined in:
- lib/lutaml/store/format/base.rb
Instance Method Summary
collapse
Instance Method Details
#deserialize(data, model_class) ⇒ Object
19
20
21
|
# File 'lib/lutaml/store/format/base.rb', line 19
def deserialize(data, model_class)
raise NotImplementedError
end
|
#deserialize_many(_data, _model_class) ⇒ Object
27
28
29
|
# File 'lib/lutaml/store/format/base.rb', line 27
def deserialize_many(_data, _model_class)
raise NotImplementedError, "#{self.class} does not support multi-document deserialization"
end
|
#extension ⇒ Object
7
8
9
|
# File 'lib/lutaml/store/format/base.rb', line 7
def extension
raise NotImplementedError
end
|
#glob_pattern ⇒ Object
11
12
13
|
# File 'lib/lutaml/store/format/base.rb', line 11
def glob_pattern
raise NotImplementedError
end
|
#serialize(model) ⇒ Object
15
16
17
|
# File 'lib/lutaml/store/format/base.rb', line 15
def serialize(model)
raise NotImplementedError
end
|
#serialize_many(models) ⇒ Object
23
24
25
|
# File 'lib/lutaml/store/format/base.rb', line 23
def serialize_many(models)
models.map { |m| serialize(m) }.join
end
|